diff --git a/lib/Cargo.toml b/lib/Cargo.toml index f4d3cae1..1ea58475 100644 --- a/lib/Cargo.toml +++ b/lib/Cargo.toml @@ -14,9 +14,6 @@ a SPARQL database and RDF toolkit edition = "2021" rust-version = "1.65" -[package.metadata.docs.rs] -all-features = true - [features] default = [] http_client = ["oxhttp", "oxhttp/rustls"] @@ -57,6 +54,10 @@ criterion = "0.5" oxhttp = "0.1" zstd = "0.12" +[package.metadata.docs.rs] +all-features = true +rustdoc-args = ["--cfg", "docsrs"] + [[bench]] name = "store" harness = false diff --git a/lib/oxrdf/Cargo.toml b/lib/oxrdf/Cargo.toml index 9e429d7d..344d46fe 100644 --- a/lib/oxrdf/Cargo.toml +++ b/lib/oxrdf/Cargo.toml @@ -25,3 +25,4 @@ oxsdatatypes = { version = "0.2.0-alpha.1-dev", path="../oxsdatatypes", optional [package.metadata.docs.rs] all-features = true +rustdoc-args = ["--cfg", "docsrs"] \ No newline at end of file diff --git a/lib/oxrdfxml/Cargo.toml b/lib/oxrdfxml/Cargo.toml index 25e19c72..3d012e17 100644 --- a/lib/oxrdfxml/Cargo.toml +++ b/lib/oxrdfxml/Cargo.toml @@ -21,3 +21,4 @@ quick-xml = "0.29" [package.metadata.docs.rs] all-features = true +rustdoc-args = ["--cfg", "docsrs"] diff --git a/lib/oxsdatatypes/Cargo.toml b/lib/oxsdatatypes/Cargo.toml index 86c7d292..1535a325 100644 --- a/lib/oxsdatatypes/Cargo.toml +++ b/lib/oxsdatatypes/Cargo.toml @@ -18,3 +18,4 @@ js-sys = "0.3" [package.metadata.docs.rs] all-features = true +rustdoc-args = ["--cfg", "docsrs"] diff --git a/lib/oxttl/Cargo.toml b/lib/oxttl/Cargo.toml index 09d2798d..8717a9b6 100644 --- a/lib/oxttl/Cargo.toml +++ b/lib/oxttl/Cargo.toml @@ -25,3 +25,4 @@ oxilangtag = "0.1" [package.metadata.docs.rs] all-features = true +rustdoc-args = ["--cfg", "docsrs"] diff --git a/lib/sparesults/Cargo.toml b/lib/sparesults/Cargo.toml index 29973e23..c345b2a0 100644 --- a/lib/sparesults/Cargo.toml +++ b/lib/sparesults/Cargo.toml @@ -24,3 +24,4 @@ quick-xml = "0.29" [package.metadata.docs.rs] all-features = true +rustdoc-args = ["--cfg", "docsrs"] diff --git a/lib/spargebra/Cargo.toml b/lib/spargebra/Cargo.toml index 5fa672b5..d13d8037 100644 --- a/lib/spargebra/Cargo.toml +++ b/lib/spargebra/Cargo.toml @@ -28,3 +28,4 @@ oxrdf = { version = "0.2.0-alpha.1-dev", path="../oxrdf" } [package.metadata.docs.rs] all-features = true +rustdoc-args = ["--cfg", "docsrs"] diff --git a/lib/sparopt/Cargo.toml b/lib/sparopt/Cargo.toml index 3e30b5ac..06934952 100644 --- a/lib/sparopt/Cargo.toml +++ b/lib/sparopt/Cargo.toml @@ -26,3 +26,4 @@ spargebra = { version = "0.3.0-alpha.1-dev", path="../spargebra" } [package.metadata.docs.rs] all-features = true +rustdoc-args = ["--cfg", "docsrs"] diff --git a/lib/src/lib.rs b/lib/src/lib.rs index d5578fb2..1ccbe197 100644 --- a/lib/src/lib.rs +++ b/lib/src/lib.rs @@ -1,8 +1,8 @@ #![doc = include_str!("../README.md")] +#![doc(test(attr(deny(warnings))))] +#![cfg_attr(docsrs, feature(doc_auto_cfg))] #![doc(html_favicon_url = "https://raw.githubusercontent.com/oxigraph/oxigraph/main/logo.svg")] #![doc(html_logo_url = "https://raw.githubusercontent.com/oxigraph/oxigraph/main/logo.svg")] -#![cfg_attr(docsrs, feature(doc_auto_cfg))] -#![doc(test(attr(deny(warnings))))] pub mod io; pub mod sparql;