diff --git a/Cargo.toml b/Cargo.toml index 45a97930..99d4f2c8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,7 +15,7 @@ path = "src/bin/stellar-xdr/main.rs" required-features = ["cli"] doctest = false -[build_dependencies] +[build-dependencies] crate-git-revision = "0.0.6" [dependencies] @@ -31,7 +31,7 @@ serde_json = { version = "1.0.89", optional = true } thiserror = { version = "1.0.37", optional = true } schemars = { version = "0.8.16", optional = true } -[dev_dependencies] +[dev-dependencies] serde_json = "1.0.89" [features] diff --git a/build.rs b/build.rs index e0fece79..c137ba10 100644 --- a/build.rs +++ b/build.rs @@ -1,3 +1,4 @@ pub fn main() { + println!("cargo:rustc-check-cfg=cfg(docs)"); crate_git_revision::init(); }