diff --git a/Cargo.toml b/Cargo.toml index 53f72f3..c0c5e08 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -60,3 +60,7 @@ libpt-core = { workspace = true } libpt-bintols = { workspace = true, optional = true } libpt-log = { workspace = true, optional = true } libpt-cli = { workspace = true, optional = true, features = ["log"] } + +[package.metadata.docs.rs] +all-features = true +rustdoc-args = ["--cfg", "docsrs"] diff --git a/members/libpt-bintols/Cargo.toml b/members/libpt-bintols/Cargo.toml index fe9e5af..d1d3d6a 100644 --- a/members/libpt-bintols/Cargo.toml +++ b/members/libpt-bintols/Cargo.toml @@ -20,3 +20,7 @@ libpt-core = { workspace = true } libpt-log = { workspace = true } anyhow = { workspace = true } thiserror = { workspace = true } + +[package.metadata.docs.rs] +all-features = true +rustdoc-args = ["--cfg", "docsrs"] diff --git a/members/libpt-cli/Cargo.toml b/members/libpt-cli/Cargo.toml index ad47c02..85984a5 100644 --- a/members/libpt-cli/Cargo.toml +++ b/members/libpt-cli/Cargo.toml @@ -12,9 +12,6 @@ repository.workspace = true keywords.workspace = true categories.workspace = true -[package.metadata.docs.rs] -cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"] - [features] default = [] full = ["log"] @@ -35,3 +32,7 @@ log = { version = "0.4.21", optional = true } shlex = "1.3.0" strum = { version = "0.26.3", features = ["derive"] } thiserror.workspace = true + +[package.metadata.docs.rs] +all-features = true +rustdoc-args = ["--cfg", "docsrs"] diff --git a/members/libpt-core/Cargo.toml b/members/libpt-core/Cargo.toml index fd62331..b4436bb 100644 --- a/members/libpt-core/Cargo.toml +++ b/members/libpt-core/Cargo.toml @@ -16,3 +16,7 @@ categories.workspace = true anyhow = "1.0.79" [dev-dependencies] + +[package.metadata.docs.rs] +all-features = true +rustdoc-args = ["--cfg", "docsrs"] diff --git a/members/libpt-log/Cargo.toml b/members/libpt-log/Cargo.toml index 2c05aaf..7ca99ad 100644 --- a/members/libpt-log/Cargo.toml +++ b/members/libpt-log/Cargo.toml @@ -22,3 +22,7 @@ libpt-core = { workspace = true, optional = false } [dev-dependencies] gag = "1.0.0" + +[package.metadata.docs.rs] +all-features = true +rustdoc-args = ["--cfg", "docsrs"]