From 4a257b89d41d1a54c368a5a18f5630b4e4735ce0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alja=C5=BE=20Mur=20Er=C5=BEen?= Date: Wed, 7 Feb 2024 12:26:38 -0800 Subject: [PATCH] build: disable cargo doc on crates that don't have docs (#4183) Co-authored-by: Maximilian Roos <5635139+max-sixty@users.noreply.github.com> --- lutra/bindings/python/Cargo.toml | 1 + prqlc/bindings/elixir/native/prql/Cargo.toml | 1 + prqlc/bindings/java/Cargo.toml | 1 + prqlc/bindings/js/Cargo.toml | 1 + prqlc/bindings/prqlc-c/Cargo.toml | 1 + prqlc/bindings/python/Cargo.toml | 2 ++ prqlc/prqlc/examples/compile-files/Cargo.toml | 1 + web/book/Cargo.toml | 1 + 8 files changed, 9 insertions(+) diff --git a/lutra/bindings/python/Cargo.toml b/lutra/bindings/python/Cargo.toml index 585ca486c03c..7beb42679a40 100644 --- a/lutra/bindings/python/Cargo.toml +++ b/lutra/bindings/python/Cargo.toml @@ -12,6 +12,7 @@ version.workspace = true [lib] crate-type = ["cdylib"] name = "lutra" +doc = false [target.'cfg(not(target_family="wasm"))'.dependencies] # we rename lutra to lutralib here, so we can define a function named lutra diff --git a/prqlc/bindings/elixir/native/prql/Cargo.toml b/prqlc/bindings/elixir/native/prql/Cargo.toml index 0412bf5c67dd..f5af7e3f3597 100644 --- a/prqlc/bindings/elixir/native/prql/Cargo.toml +++ b/prqlc/bindings/elixir/native/prql/Cargo.toml @@ -16,6 +16,7 @@ doctest = false name = "prql" path = "src/lib.rs" test = false +doc = false # See Readme for details on Mac [target.'cfg(not(any(target_family="wasm", target_os = "macos")))'.dependencies] diff --git a/prqlc/bindings/java/Cargo.toml b/prqlc/bindings/java/Cargo.toml index 4127a2759bf3..04610f5e3633 100644 --- a/prqlc/bindings/java/Cargo.toml +++ b/prqlc/bindings/java/Cargo.toml @@ -12,6 +12,7 @@ version.workspace = true crate_type = ["cdylib"] doctest = false test = false +doc = false [dependencies] jni = "0.21.1" diff --git a/prqlc/bindings/js/Cargo.toml b/prqlc/bindings/js/Cargo.toml index a732fe07ae8c..dc108123421f 100644 --- a/prqlc/bindings/js/Cargo.toml +++ b/prqlc/bindings/js/Cargo.toml @@ -13,6 +13,7 @@ version.workspace = true crate-type = ["cdylib", "rlib"] doctest = false test = false +doc = false [features] default = ["console_error_panic_hook"] diff --git a/prqlc/bindings/prqlc-c/Cargo.toml b/prqlc/bindings/prqlc-c/Cargo.toml index 2aea7e95ada3..fa8b72c6df6f 100644 --- a/prqlc/bindings/prqlc-c/Cargo.toml +++ b/prqlc/bindings/prqlc-c/Cargo.toml @@ -19,6 +19,7 @@ default = [] crate_type = ["staticlib", "cdylib"] doctest = false test = false +doc = false [dependencies] libc = "0.2.153" diff --git a/prqlc/bindings/python/Cargo.toml b/prqlc/bindings/python/Cargo.toml index a3251952fd47..7a25d99d7cc7 100644 --- a/prqlc/bindings/python/Cargo.toml +++ b/prqlc/bindings/python/Cargo.toml @@ -12,6 +12,8 @@ version.workspace = true [lib] crate-type = ["cdylib"] name = "prql_python" +doctest = false +doc = false [target.'cfg(not(target_family="wasm"))'.dependencies] pyo3 = {version = "0.20.2", features = ["abi3-py37"]} diff --git a/prqlc/prqlc/examples/compile-files/Cargo.toml b/prqlc/prqlc/examples/compile-files/Cargo.toml index 37a1c54f8515..82332ff37a3e 100644 --- a/prqlc/prqlc/examples/compile-files/Cargo.toml +++ b/prqlc/prqlc/examples/compile-files/Cargo.toml @@ -11,6 +11,7 @@ version.workspace = true [[bin]] name = "compile-files" test = false +doc = false [build-dependencies] prqlc = {path = '../../../prqlc', default-features = false} diff --git a/web/book/Cargo.toml b/web/book/Cargo.toml index 9fcda25ea02a..41c2b0060e4e 100644 --- a/web/book/Cargo.toml +++ b/web/book/Cargo.toml @@ -10,6 +10,7 @@ version.workspace = true [lib] doctest = false +doc = false [[bin]] name = "mdbook-prql"