diff --git a/src/schemars/debian/RFS b/src/schemars/debian/RFS new file mode 100644 index 000000000..207b712bb --- /dev/null +++ b/src/schemars/debian/RFS @@ -0,0 +1,2 @@ +depends on serde-derive-internals and schemars-derive +needed for cargo-auditable, please upload after the freeze diff --git a/src/schemars/debian/changelog b/src/schemars/debian/changelog new file mode 100644 index 000000000..fa92d8de2 --- /dev/null +++ b/src/schemars/debian/changelog @@ -0,0 +1,5 @@ +rust-schemars (0.8.11-1) UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO; urgency=medium + + * Package schemars 0.8.11 from crates.io using debcargo 2.6.0 + + -- Alexander Kjäll Sat, 25 Feb 2023 13:08:59 +0100 diff --git a/src/schemars/debian/copyright b/src/schemars/debian/copyright new file mode 100644 index 000000000..483c91091 --- /dev/null +++ b/src/schemars/debian/copyright @@ -0,0 +1,33 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: schemars +Upstream-Contact: Graham Esau +Source: https://github.com/GREsau/schemars + +Files: * +Copyright: 2019-2022 Graham Esau +License: MIT + +Files: debian/* +Copyright: + 2023 Debian Rust Maintainers + 2023 Alexander Kjäll +License: MIT + +License: MIT + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + . + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + . + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. diff --git a/src/schemars/debian/copyright.debcargo.hint b/src/schemars/debian/copyright.debcargo.hint new file mode 100644 index 000000000..fb5474c64 --- /dev/null +++ b/src/schemars/debian/copyright.debcargo.hint @@ -0,0 +1,45 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: schemars +Upstream-Contact: Graham Esau +Source: https://github.com/GREsau/schemars + +Files: * +Copyright: FIXME (overlay) UNKNOWN-YEARS Graham Esau +License: MIT +Comment: + FIXME (overlay): Since upstream copyright years are not available in + Cargo.toml, they were extracted from the upstream Git repository. This may not + be correct information so you should review and fix this before uploading to + the archive. + +Files: LICENSE +Copyright: 2019 Graham Esau +License: UNKNOWN-LICENSE; FIXME (overlay) +Comment: + FIXME (overlay): These notices are extracted from files. Please review them + before uploading to the archive. + +Files: debian/* +Copyright: + 2023 Debian Rust Maintainers + 2023 Alexander Kjäll +License: MIT + +License: MIT + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + . + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + . + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. diff --git a/src/schemars/debian/debcargo.toml b/src/schemars/debian/debcargo.toml new file mode 100644 index 000000000..e14f1b370 --- /dev/null +++ b/src/schemars/debian/debcargo.toml @@ -0,0 +1,54 @@ +overlay = "." +uploaders = ["Alexander Kjäll "] +collapse_features = true + +[packages."lib+@"] +test_is_broken = false + +[packages."lib+default"] +test_is_broken = true + +[packages."lib+arrayvec07"] +test_is_broken = true + +[packages."lib+bigdecimal"] +test_is_broken = true + +[packages."lib+bytes"] +test_is_broken = true + +[packages."lib+chrono"] +test_is_broken = true + +[packages."lib+either"] +test_is_broken = true + +[packages."lib+enumset"] +test_is_broken = true + +[packages."lib+indexmap"] +test_is_broken = true + +[packages."lib+rust-decimal"] +test_is_broken = true + +[packages."lib+schemars-derive"] +test_is_broken = false + +[packages."lib+smallvec"] +test_is_broken = true + +[packages."lib+url"] +test_is_broken = true + +[packages."lib+uuid1"] +test_is_broken = true + +[packages."lib+rust_decimal"] +test_is_broken = true + +[packages."lib+ui_test"] +test_is_broken = true + +[packages."lib"] +test_is_broken = true diff --git a/src/schemars/debian/patches/disable-old-version-features.patch b/src/schemars/debian/patches/disable-old-version-features.patch new file mode 100644 index 000000000..6b39b958e --- /dev/null +++ b/src/schemars/debian/patches/disable-old-version-features.patch @@ -0,0 +1,98 @@ +diff --git a/Cargo.toml b/Cargo.toml +index c12b53d..67c21af 100644 +--- a/Cargo.toml ++++ b/Cargo.toml +@@ -45,7 +45,6 @@ required-features = ["either"] + [[test]] + name = "uuid" + required-features = [ +- "uuid08", + "uuid1", + ] + +@@ -60,7 +59,6 @@ required-features = ["bytes"] + [[test]] + name = "arrayvec" + required-features = [ +- "arrayvec05", + "arrayvec07", + ] + +@@ -80,12 +78,6 @@ required-features = ["url"] + name = "enumset" + required-features = ["enumset"] + +-[dependencies.arrayvec05] +-version = "0.5" +-optional = true +-default-features = false +-package = "arrayvec" +- + [dependencies.arrayvec07] + version = "0.7" + optional = true +@@ -148,12 +140,6 @@ version = "2.0" + optional = true + default-features = false + +-[dependencies.uuid08] +-version = "0.8" +-optional = true +-default-features = false +-package = "uuid" +- + [dependencies.uuid1] + version = "1.0" + optional = true +@@ -167,7 +153,7 @@ version = "1.2.1" + version = "1.0" + + [features] +-arrayvec = ["arrayvec05"] ++#arrayvec = ["arrayvec05"] + default = ["derive"] + derive = ["schemars_derive"] + derive_json_schema = ["impl_json_schema"] +@@ -175,4 +161,4 @@ impl_json_schema = ["derive"] + indexmap1 = ["indexmap"] + preserve_order = ["indexmap"] + ui_test = [] +-uuid = ["uuid08"] ++#uuid = ["uuid08"] +diff --git a/tests/arrayvec.rs b/tests/arrayvec.rs +index b00b395..e32d1a7 100644 +--- a/tests/arrayvec.rs ++++ b/tests/arrayvec.rs +@@ -1,16 +1,6 @@ + mod util; + use util::*; + +-#[test] +-fn arrayvec05() -> TestResult { +- test_default_generated_schema::>("arrayvec") +-} +- +-#[test] +-fn arrayvec05_string() -> TestResult { +- test_default_generated_schema::>("arrayvec_string") +-} +- + #[test] + fn arrayvec07() -> TestResult { + test_default_generated_schema::>("arrayvec") +diff --git a/tests/uuid.rs b/tests/uuid.rs +index bd673b5..77e92c2 100644 +--- a/tests/uuid.rs ++++ b/tests/uuid.rs +@@ -1,11 +1,6 @@ + mod util; + use util::*; + +-#[test] +-fn uuid08() -> TestResult { +- test_default_generated_schema::("uuid") +-} +- + #[test] + fn uuid1() -> TestResult { + test_default_generated_schema::("uuid") diff --git a/src/schemars/debian/patches/series b/src/schemars/debian/patches/series new file mode 100644 index 000000000..aa43d46a8 --- /dev/null +++ b/src/schemars/debian/patches/series @@ -0,0 +1 @@ +disable-old-version-features.patch