Loading Cargo.lock +5 −2 Original line number Diff line number Diff line Loading @@ -497,9 +497,12 @@ dependencies = [ [[package]] name = "cast" version = "0.2.2" version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "926013f2860c46252efceabb19f4a6b308197505082c609025aa6706c011d427" checksum = "cc38c385bfd7e444464011bb24820f40dd1c76bcdfa1b78611cb7c2e5cafab75" dependencies = [ "rustc_version", ] [[package]] name = "cc" Loading third_party/rust/cast/.cargo-checksum.json +1 −1 Original line number Diff line number Diff line {"files":{"CHANGELOG.md":"b24b688b552ea12f4ef03b2c76e17ecfb8c05104d4f494c47b698fd7d94d3e3a","Cargo.toml":"3908d7c2421a4071d3fdd4a7c7a44c1c8779cf9d229cec307fd1a2b96398aa60","LICENSE-APACHE":"a60eea817514531668d7e00765731449fe14d059d3249e0bc93b36de45f759f2","LICENSE-MIT":"005b3f9b4687364514bbaea2a25e96d54ce6a59277d157386e8259cbcae8e095","README.md":"006ae145ee89fa14a9d755b206ec2011a3687408e9d5fe3943f2448767b01d62","ci/install.sh":"f3965bda34345579d0799ca2e581efd7ae51f3191aa9203b018f4ade8b986b15","ci/script.sh":"0f8329c7345731c12f35a392e8deeb2e265b75f107c5aca6eed584096896737f","src/lib.rs":"52418274bc4ec5c59dba1885de7324157e677739a2c9624b5d462d5d4c77b5e3","src/test.rs":"58ea38d755d5eae72b1df29fc602483fef888a111bb2e9c3a219e2b2a1ed222f"},"package":"926013f2860c46252efceabb19f4a6b308197505082c609025aa6706c011d427"} No newline at end of file {"files":{"CHANGELOG.md":"e55cdd51726a3865d07424514fdba6b1b465136c7906252da48be5d2e76e52f1","Cargo.toml":"c284d65591f858bdb358246f46638e481cb0e09f8cd59ff5d0e0650f6ed4f6dc","LICENSE-APACHE":"a60eea817514531668d7e00765731449fe14d059d3249e0bc93b36de45f759f2","LICENSE-MIT":"005b3f9b4687364514bbaea2a25e96d54ce6a59277d157386e8259cbcae8e095","README.md":"006ae145ee89fa14a9d755b206ec2011a3687408e9d5fe3943f2448767b01d62","build.rs":"96d02915f44c85ae32515ae73b217fc24bfd1f4aa124d4e8a0f93828bb2b50b7","ci/install.sh":"e295d97db9e12ac6ee3e523e4597ad58fedcca2b8aa3a21302951ad2327b88a9","ci/script.sh":"964e510d5af745d6b86d68d5b95760db4a94112ace0a1027602e6e8baadec8a5","src/lib.rs":"2c58d1191fa96491fa169ac37a561f7bad4dc8c063c63a3bab88985632aff01c","src/test.rs":"314d5236c0a34068a4e0ba0ec8f3fbfaeac61cae60a9725f2584266d00a863a3"},"package":"cc38c385bfd7e444464011bb24820f40dd1c76bcdfa1b78611cb7c2e5cafab75"} No newline at end of file third_party/rust/cast/CHANGELOG.md +21 −1 Original line number Diff line number Diff line Loading @@ -7,6 +7,25 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] ## [v0.2.5] - 2021-04-13 ### Fixed - Build on platforms with 32-bit pointers ## [v0.2.4] - 2021-04-11 - YANKED ## [v0.2.3] - 2018-11-17 ### Changed - Documented the guaranteed MRSV to be 1.13 - The `x128` feature now works on *stable* Rust 1.26+ ### Fixed - Overflow and underflow checks when casting a float to an unsigned integer ## [v0.2.2] - 2017-05-07 ### Fixed Loading Loading @@ -36,7 +55,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/). Initial release [Unreleased]: https://github.com/japaric/cast.rs/compare/v0.2.2...HEAD [Unreleased]: https://github.com/japaric/cast.rs/compare/v0.2.3...HEAD [v0.2.3]: https://github.com/japaric/cast.rs/compare/v0.2.2...v0.2.3 [v0.2.2]: https://github.com/japaric/cast.rs/compare/v0.2.1...v0.2.2 [v0.2.1]: https://github.com/japaric/cast.rs/compare/v0.2.0...v0.2.1 [v0.2.0]: https://github.com/japaric/cast.rs/compare/v0.1.0...v0.2.0 third_party/rust/cast/Cargo.toml +20 −9 Original line number Diff line number Diff line # THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies # # If you believe there's an error in this file please file an # issue against the rust-lang/cargo repository. If you're # editing this file be aware that the upstream Cargo.toml # will likely look very different (and much more reasonable) [package] edition = "2018" name = "cast" version = "0.2.5" authors = ["Jorge Aparicio <jorge@japaric.io>"] build = "build.rs" description = "Ergonomic, checked cast functions for primitive types" documentation = "https://docs.rs/cast" keywords = ["checked", "cast", "primitive", "integer", "float"] license = "MIT OR Apache-2.0" name = "cast" repository = "https://github.com/japaric/cast.rs" version = "0.2.2" [dev-dependencies.quickcheck] version = "0.9.0" [build-dependencies.rustc_version] version = "0.2.3" [features] # Assume we should use `std` unless asked to do otherwise. default = ["std"] # Enable this to get a std::error::Error impl for convenient use with other # libraries. std = [] # Enable this for i128/u128 support x128 = [] [dev-dependencies] quickcheck = "0.4.1" third_party/rust/cast/build.rs 0 → 100644 +8 −0 Original line number Diff line number Diff line extern crate rustc_version; fn main() { let vers = rustc_version::version().unwrap(); if vers.major == 1 && vers.minor >= 26 { println!("cargo:rustc-cfg=stable_i128") } } Loading
Cargo.lock +5 −2 Original line number Diff line number Diff line Loading @@ -497,9 +497,12 @@ dependencies = [ [[package]] name = "cast" version = "0.2.2" version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "926013f2860c46252efceabb19f4a6b308197505082c609025aa6706c011d427" checksum = "cc38c385bfd7e444464011bb24820f40dd1c76bcdfa1b78611cb7c2e5cafab75" dependencies = [ "rustc_version", ] [[package]] name = "cc" Loading
third_party/rust/cast/.cargo-checksum.json +1 −1 Original line number Diff line number Diff line {"files":{"CHANGELOG.md":"b24b688b552ea12f4ef03b2c76e17ecfb8c05104d4f494c47b698fd7d94d3e3a","Cargo.toml":"3908d7c2421a4071d3fdd4a7c7a44c1c8779cf9d229cec307fd1a2b96398aa60","LICENSE-APACHE":"a60eea817514531668d7e00765731449fe14d059d3249e0bc93b36de45f759f2","LICENSE-MIT":"005b3f9b4687364514bbaea2a25e96d54ce6a59277d157386e8259cbcae8e095","README.md":"006ae145ee89fa14a9d755b206ec2011a3687408e9d5fe3943f2448767b01d62","ci/install.sh":"f3965bda34345579d0799ca2e581efd7ae51f3191aa9203b018f4ade8b986b15","ci/script.sh":"0f8329c7345731c12f35a392e8deeb2e265b75f107c5aca6eed584096896737f","src/lib.rs":"52418274bc4ec5c59dba1885de7324157e677739a2c9624b5d462d5d4c77b5e3","src/test.rs":"58ea38d755d5eae72b1df29fc602483fef888a111bb2e9c3a219e2b2a1ed222f"},"package":"926013f2860c46252efceabb19f4a6b308197505082c609025aa6706c011d427"} No newline at end of file {"files":{"CHANGELOG.md":"e55cdd51726a3865d07424514fdba6b1b465136c7906252da48be5d2e76e52f1","Cargo.toml":"c284d65591f858bdb358246f46638e481cb0e09f8cd59ff5d0e0650f6ed4f6dc","LICENSE-APACHE":"a60eea817514531668d7e00765731449fe14d059d3249e0bc93b36de45f759f2","LICENSE-MIT":"005b3f9b4687364514bbaea2a25e96d54ce6a59277d157386e8259cbcae8e095","README.md":"006ae145ee89fa14a9d755b206ec2011a3687408e9d5fe3943f2448767b01d62","build.rs":"96d02915f44c85ae32515ae73b217fc24bfd1f4aa124d4e8a0f93828bb2b50b7","ci/install.sh":"e295d97db9e12ac6ee3e523e4597ad58fedcca2b8aa3a21302951ad2327b88a9","ci/script.sh":"964e510d5af745d6b86d68d5b95760db4a94112ace0a1027602e6e8baadec8a5","src/lib.rs":"2c58d1191fa96491fa169ac37a561f7bad4dc8c063c63a3bab88985632aff01c","src/test.rs":"314d5236c0a34068a4e0ba0ec8f3fbfaeac61cae60a9725f2584266d00a863a3"},"package":"cc38c385bfd7e444464011bb24820f40dd1c76bcdfa1b78611cb7c2e5cafab75"} No newline at end of file
third_party/rust/cast/CHANGELOG.md +21 −1 Original line number Diff line number Diff line Loading @@ -7,6 +7,25 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] ## [v0.2.5] - 2021-04-13 ### Fixed - Build on platforms with 32-bit pointers ## [v0.2.4] - 2021-04-11 - YANKED ## [v0.2.3] - 2018-11-17 ### Changed - Documented the guaranteed MRSV to be 1.13 - The `x128` feature now works on *stable* Rust 1.26+ ### Fixed - Overflow and underflow checks when casting a float to an unsigned integer ## [v0.2.2] - 2017-05-07 ### Fixed Loading Loading @@ -36,7 +55,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/). Initial release [Unreleased]: https://github.com/japaric/cast.rs/compare/v0.2.2...HEAD [Unreleased]: https://github.com/japaric/cast.rs/compare/v0.2.3...HEAD [v0.2.3]: https://github.com/japaric/cast.rs/compare/v0.2.2...v0.2.3 [v0.2.2]: https://github.com/japaric/cast.rs/compare/v0.2.1...v0.2.2 [v0.2.1]: https://github.com/japaric/cast.rs/compare/v0.2.0...v0.2.1 [v0.2.0]: https://github.com/japaric/cast.rs/compare/v0.1.0...v0.2.0
third_party/rust/cast/Cargo.toml +20 −9 Original line number Diff line number Diff line # THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies # # If you believe there's an error in this file please file an # issue against the rust-lang/cargo repository. If you're # editing this file be aware that the upstream Cargo.toml # will likely look very different (and much more reasonable) [package] edition = "2018" name = "cast" version = "0.2.5" authors = ["Jorge Aparicio <jorge@japaric.io>"] build = "build.rs" description = "Ergonomic, checked cast functions for primitive types" documentation = "https://docs.rs/cast" keywords = ["checked", "cast", "primitive", "integer", "float"] license = "MIT OR Apache-2.0" name = "cast" repository = "https://github.com/japaric/cast.rs" version = "0.2.2" [dev-dependencies.quickcheck] version = "0.9.0" [build-dependencies.rustc_version] version = "0.2.3" [features] # Assume we should use `std` unless asked to do otherwise. default = ["std"] # Enable this to get a std::error::Error impl for convenient use with other # libraries. std = [] # Enable this for i128/u128 support x128 = [] [dev-dependencies] quickcheck = "0.4.1"
third_party/rust/cast/build.rs 0 → 100644 +8 −0 Original line number Diff line number Diff line extern crate rustc_version; fn main() { let vers = rustc_version::version().unwrap(); if vers.major == 1 && vers.minor >= 26 { println!("cargo:rustc-cfg=stable_i128") } }