From 7b0ad71c71668b745792a06aeb11949e92f6029e Mon Sep 17 00:00:00 2001 From: David Sherret Date: Mon, 9 Dec 2024 01:02:09 -0500 Subject: [PATCH] chore: update string_capacity to capacity_builder --- Cargo.lock | 20 ++++++++++---------- Cargo.toml | 2 +- src/source/wasm.rs | 2 +- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 90633552..d3d81dbb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -247,6 +247,15 @@ version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9ac0150caa2ae65ca5bd83f25c7de183dea78d4d366469f148435e2acfbad0da" +[[package]] +name = "capacity_builder" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2c0f637033edd76ceb881faaee372868a383f0ed7a4a59e8fdf90db2502f3d3" +dependencies = [ + "itoa", +] + [[package]] name = "cc" version = "1.2.1" @@ -423,6 +432,7 @@ dependencies = [ "anyhow", "async-trait", "bincode", + "capacity_builder", "data-url", "deno_ast", "deno_semver", @@ -444,7 +454,6 @@ dependencies = [ "serde", "serde_json", "sha2", - "string_capacity", "tempfile", "thiserror 2.0.3", "tokio", @@ -1958,15 +1967,6 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" -[[package]] -name = "string_capacity" -version = "0.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5e7fad11dbd0a122b9b88d805c9cf0a420c6628773c6f4d738e6e49664b5a582" -dependencies = [ - "itoa", -] - [[package]] name = "string_enum" version = "0.4.4" diff --git a/Cargo.toml b/Cargo.toml index 5706864f..0148ca90 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -40,7 +40,7 @@ harness = false [dependencies] anyhow = "1.0.43" async-trait = "0.1.68" -string_capacity = "0.1.3" +capacity_builder = "0.1.0" data-url = "0.3.0" deno_ast = { version = "0.44.0", features = ["dep_analysis", "emit"] } deno_unsync.workspace = true diff --git a/src/source/wasm.rs b/src/source/wasm.rs index 7477f1c8..41a17362 100644 --- a/src/source/wasm.rs +++ b/src/source/wasm.rs @@ -1,7 +1,7 @@ // Copyright 2018-2024 the Deno authors. MIT license. +use capacity_builder::StringBuilder; use indexmap::IndexSet; -use string_capacity::StringBuilder; use wasm_dep_analyzer::ValueType; pub fn wasm_module_to_dts(