From aebc6572ab8b2acae59c2d0872bfa1d14af37cd7 Mon Sep 17 00:00:00 2001 From: Alex Saveau Date: Wed, 20 Apr 2022 21:16:47 -0700 Subject: [PATCH] Make lib publishable (turns out you can't have git repos which is dumb) Signed-off-by: Alex Saveau --- Cargo.lock | 11 ++++++----- Cargo.toml | 3 ++- src/utils/file_names.rs | 1 + 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 54c50e9..0791b22 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -399,7 +399,7 @@ dependencies = [ "criterion", "derive_builder", "exitcode", - "itoa 1.0.1 (git+https://github.com/SUPERCILEX/itoa)", + "itoa-const", "log", "more-asserts", "nix", @@ -503,9 +503,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1aab8fc367588b89dcee83ab0fd66b72b50b72fa1904d7095045ace2b0c81c35" [[package]] -name = "itoa" -version = "1.0.1" -source = "git+https://github.com/SUPERCILEX/itoa#42bc8b7be69d0e4a015373caf795a6d035abfd78" +name = "itoa-const" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "05e741d4d78675e8624dc49b97545d7b64cfcb4ace7e05ec6d55083589a7010e" [[package]] name = "js-sys" @@ -934,7 +935,7 @@ version = "1.0.79" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8e8d9fa5c3b304765ce1fd9c4c8a3de2c8db365a5b91be52f186efc675681d95" dependencies = [ - "itoa 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)", + "itoa 1.0.1", "ryu", "serde", ] diff --git a/Cargo.toml b/Cargo.toml index b049932..1ccd1c9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,7 +18,8 @@ clap-verbosity-flag = "1.0.0" cli-errors = "0.3.0" derive_builder = "0.11.2" exitcode = "1.1.2" -itoa = { git = "https://github.com/SUPERCILEX/itoa" } +# TODO use the real itoa once https://github.com/dtolnay/itoa/pull/34 goes through +itoa-const = "1.0.0" log = { version = "0.4.16", features = ["release_max_level_info"] } num-format = "0.4.0" rand = { version = "0.8.5", default-features = false, features = ["simd_support"] } diff --git a/src/utils/file_names.rs b/src/utils/file_names.rs index bfad3a3..d9fa58d 100644 --- a/src/utils/file_names.rs +++ b/src/utils/file_names.rs @@ -1,3 +1,4 @@ +use itoa_const as itoa; use std::{mem::MaybeUninit, ptr, slice}; struct FileNameCache {