Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ jobs:
with:
rustflags: ""
- name: Build
run: cargo build --verbose
run: cargo build --workspace --all-features --verbose
- name: Run tests
run: cargo test --verbose
run: cargo test --workspace --all-features --verbose
- name: Build doc
run: cargo doc --verbose
run: cargo doc --workspace --all-features --verbose
- name: Run clippy
run: cargo clippy --verbose
run: cargo clippy --workspace --all-features --verbose
- name: Run rustfmt
run: cargo fmt --verbose --check
- name: Build release
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Cargo.lock

# Ignore target directory.
/target
**/target

# Ignore crappy mac files.
# Ignore files ending in ".nogit".
Expand Down
18 changes: 15 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
[workspace]
members = [
"hashconsing_derive",
]

resolver = "2"

[workspace.package]
version = "1.7.0"
edition = "2021"

[package]
name = "hashconsing"
version = "1.7.0"
version.workspace = true
authors = [
"Adrien Champion <adrien.champion@email.com>",
"Leni Aniva <aniva@stanford.edu>",
Expand All @@ -19,7 +30,7 @@ categories = [
]
keywords = ["hashconsing", "hash", "consing", "sharing", "caching"]
license = "MIT/Apache-2.0"
edition = "2021"
edition.workspace = true
rust-version = "1.60"

[package.metadata.docs.rs]
Expand All @@ -29,9 +40,11 @@ features = ["unstable_docrs"]
with_ahash = ["ahash"]
unstable_docrs = ["with_ahash"]
weak-table = ["dep:weak-table"]
derive = ["hashconsing-derive"]

[dependencies]
lazy_static = "1.*"
hashconsing-derive = { version = "1.7.0", optional = true, path = "hashconsing_derive" }

[dependencies.ahash]
version = "^0.8.3"
Expand All @@ -43,6 +56,5 @@ optional = true

[dev-dependencies]
crossbeam-utils = "^0.8"
trybuild = "^1.0"
rayon = "^1.5"
rand = "0.8"
21 changes: 21 additions & 0 deletions hashconsing_derive/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[package]
name = "hashconsing-derive"
version.workspace = true
edition.workspace = true

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[lib]
proc-macro = true

[dependencies]
convert_case = "0.11"
darling = "0.20"
proc-macro-error = "1.0"
proc-macro2 = "1.0"
quote = "1.0"
syn = { version = "2.0", features = ["full"] }

# For doc tests
[dev-dependencies]
hashconsing = {path = "..", features = ["derive"]}
Loading