Skip to content

Commit

Permalink
Rewrite it in Rust
Browse files Browse the repository at this point in the history
  • Loading branch information
1e1001 committed Oct 8, 2024
1 parent d842a61 commit 1c9eb57
Show file tree
Hide file tree
Showing 15 changed files with 1,392 additions and 626 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
/xswallow
/target
176 changes: 176 additions & 0 deletions Cargo.lock

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

31 changes: 31 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
[package]
name = "xswallow"
version = "1.0.0"
edition = "2021"

[dependencies.xcb]
version = "1.4.0"

[dependencies.foldhash]
version = "0.1.3"

[dependencies.ctrlc]
version = "3.4.5"
features = ["termination"]

[dependencies.weak-table]
version = "0.3.2"

# still 20 times larger than the C version but oh well
[profile.release]
strip = true
opt-level = "s"
lto = true

[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(rust_analyzer)'] }

[lints.clippy]
pedantic = { level = "warn", priority = -1 }
similar_names = "allow"
allow_attributes_without_reason = "deny"
Loading

0 comments on commit 1c9eb57

Please sign in to comment.