You've already forked rust-workspace
Lints and build commands
This commit is contained in:
@@ -7,6 +7,10 @@ edition.workspace = true
|
||||
license-file.workspace = true
|
||||
rust-version.workspace = true
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
all-features = true
|
||||
rustdoc-args = ["--cfg", "docsrs"]
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
//! Module
|
||||
|
||||
#![cfg_attr(docsrs, feature(doc_cfg))]
|
||||
// #[cfg_attr(docsrs, doc(cfg(feature = "std")))]
|
||||
|
||||
/// Add function
|
||||
pub fn add(left: usize, right: usize) -> usize {
|
||||
left.wrapping_add(right)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user