Skip to content

Commit

Permalink
enable doc_auto_cfg on docs.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
chrjabs committed Jan 11, 2024
1 parent ef59dc0 commit 7bc8e4f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rustsat/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,9 @@ all = [
[lib]
crate-type = ["lib", "staticlib", "cdylib"]

[package.metadata.docs.rs]
features = ["all"]
rustdoc-args = ["--cfg", "docsrs"]

[[example]]
name = "profiling"
1 change: 1 addition & 0 deletions rustsat/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
//! For an example of how to use the C-API, see `rustsat/examples/capi*.cpp`.
//! Similarly, for an example of using the Python API, see `rustsat/examples/pyapi*.py`.
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(feature = "bench", feature(test))]

pub mod encodings;
Expand Down

0 comments on commit 7bc8e4f

Please sign in to comment.