doc_file:将 Rust crate 的文档移动到外部文件中

时间:2021-07-06 04:31:56
【文件属性】:
文件名称:doc_file:将 Rust crate 的文档移动到外部文件中
文件大小:5KB
文件格式:ZIP
更新时间:2021-07-06 04:31:56
Rust 文档文件 将 Rust crate 的文档移动到外部文件中。 为什么? 这是的概念实现证明。 我希望解决问题并从树中发现问题,然后将其贡献给rustc本身。 示例用法 #![feature(phase)] // Paths are relative to the source file. #![doc_file = "example_crate.markdown" ] #[phase(plugin)] extern crate doc_file; #[doc_file = "complicated_thing.markdown" ] pub struct ComplicatedThing ; 开放式问题 语法#[doc_file = "..."]有点难看。 理想情况下,它类似于#[doc(file = "...")] 。
【文件预览】:
doc_file-master
----.gitignore(20B)
----COPYING(1KB)
----Cargo.toml(368B)
----README.markdown(855B)
----src()
--------lib.rs(3KB)
----example()
--------.gitignore(34B)
--------Cargo.toml(131B)
--------src()
----.travis.yml(15B)

网友评论