Skip to content

Commit

Permalink
feat: Merge hstr into the main repository (#9963)
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 authored Jan 26, 2025
1 parent 03dffb5 commit bc61c13
Show file tree
Hide file tree
Showing 17 changed files with 1,543 additions and 10 deletions.
6 changes: 6 additions & 0 deletions .changeset/tough-insects-invite.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
hstr: patch
swc_atoms: patch
---

feat: Merge `hstr` into the main repository
91 changes: 85 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ resolver = "2"
chili = "=0.2.0"
chrono = "0.4.38"
codspeed-criterion-compat = "2.6.0"
compact_str = "0.7.1"
console_error_panic_hook = "0.1.7"
copyless = "0.1.5"
crc = "2.1.0"
Expand All @@ -51,11 +52,11 @@ resolver = "2"
glob = "0.3.0"
hashbrown = "0.14.5"
hex = "0.4.3"
hstr = "0.2.15"
indexmap = "2.0.0"
is-macro = "0.3.5"
js-sys = "0.3.59"
jsonc-parser = "0.21.0"
kstring = "2.0.0"
lazy_static = "1.4.0"
lexical = "6.1.0"
lru = "0.10.0"
Expand All @@ -80,6 +81,7 @@ resolver = "2"
ptr_meta = "0.3.0"
quote = "1.0.7"
radix_fmt = "1.0.0"
rand = "0.8.5"
rayon = "1.7.0"
regex = "1.5.4"
relative-path = "1.6.1"
Expand All @@ -96,9 +98,11 @@ resolver = "2"
sha2 = "0.10.8"
siphasher = "0.3.9"
smallvec = "1.8.0"
smartstring = "1"
smartstring = "1.0.1"
smol_str = "0.2.0"
sourcemap = "9.0.0"
st-map = "0.2.0"
string_cache = "0.8.7"
syn = "2"
tempfile = "3.6.0"
termcolor = "1.0"
Expand Down
1 change: 1 addition & 0 deletions crates/hstr/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target
46 changes: 46 additions & 0 deletions crates/hstr/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
[package]
authors = ["강동윤 <[email protected]>"]
description = "A string type which is optimized for hash operations."
edition = { workspace = true }
license = { workspace = true }
name = "hstr"
repository = { workspace = true }
version = "0.2.16"

[lib]
bench = false


[features]
atom_size_128 = []
atom_size_64 = []
rkyv = ["dep:rkyv"]
serde = ["dep:serde"]

[dependencies]
hashbrown = { workspace = true }
new_debug_unreachable = { workspace = true }
once_cell = { workspace = true }
phf = { workspace = true }
rkyv = { workspace = true, optional = true }
rustc-hash = { workspace = true }
serde = { workspace = true, optional = true }
triomphe = { workspace = true }


[dev-dependencies]
compact_str = { workspace = true }
criterion = { workspace = true }
kstring = { workspace = true }
num_cpus = { workspace = true }
rand = { workspace = true }
rayon = { workspace = true }
smartstring = { workspace = true }
smol_str = { workspace = true }
string_cache = { workspace = true }

swc_malloc = { version = "1.0.0", path = "../swc_malloc" }

[[bench]]
harness = false
name = "libs"
Loading

0 comments on commit bc61c13

Please sign in to comment.