Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move crates to dedicated crates folder #416

Merged
merged 3 commits into from
Mar 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
22 changes: 11 additions & 11 deletions .github/workflows/build-crate-and-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.cargo_registry_token }}
run: |
cd chia_py_streamable_macro
cd crates/chia_py_streamable_macro
cargo publish

- name: publish to crates.io if tagged (chia_streamable_macro)
Expand All @@ -70,7 +70,7 @@ jobs:
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.cargo_registry_token }}
run: |
cd chia_streamable_macro
cd crates/chia_streamable_macro
cargo publish

- name: publish to crates.io if tagged (chia-traits)
Expand All @@ -79,7 +79,7 @@ jobs:
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.cargo_registry_token }}
run: |
cd chia-traits
cd crates/chia-traits
cargo publish

- name: publish to crates.io if tagged (chia-bls)
Expand All @@ -88,7 +88,7 @@ jobs:
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.cargo_registry_token }}
run: |
cd chia-bls
cd crates/chia-bls
cargo publish

- name: publish to crates.io if tagged (clvm-derive)
Expand All @@ -97,7 +97,7 @@ jobs:
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.cargo_registry_token }}
run: |
cd clvm-derive
cd crates/clvm-derive
cargo publish

- name: publish to crates.io if tagged (clvm-traits)
Expand All @@ -106,7 +106,7 @@ jobs:
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.cargo_registry_token }}
run: |
cd clvm-traits
cd crates/clvm-traits
cargo publish

- name: publish to crates.io if tagged (clvm-utils)
Expand All @@ -115,7 +115,7 @@ jobs:
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.cargo_registry_token }}
run: |
cd clvm-utils
cd crates/clvm-utils
cargo publish

- name: publish to crates.io if tagged (chia-protocol)
Expand All @@ -124,7 +124,7 @@ jobs:
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.cargo_registry_token }}
run: |
cd chia-protocol
cd crates/chia-protocol
cargo publish

- name: publish to crates.io if tagged (chia-wallet)
Expand All @@ -133,7 +133,7 @@ jobs:
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.cargo_registry_token }}
run: |
cd chia-wallet
cd crates/chia-wallet
cargo publish

- name: publish to crates.io if tagged (chia-client)
Expand All @@ -142,7 +142,7 @@ jobs:
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.cargo_registry_token }}
run: |
cd chia-client
cd crates/chia-client
cargo publish

- name: publish to crates.io if tagged (chia-ssl)
Expand All @@ -151,7 +151,7 @@ jobs:
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.cargo_registry_token }}
run: |
cd chia-ssl
cd crates/chia-ssl
cargo publish

- name: publish to crates.io if tagged (chia_rs)
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ jobs:

- name: cargo build
run: |
cd chia-tools
cd crates/chia-tools
cargo build

build-sdist:
Expand Down Expand Up @@ -329,21 +329,21 @@ jobs:
# not unloaded before exiting
LSAN_OPTIONS: detect_leaks=0
run: |
cd chia-bls
cd crates/chia-bls
python -m pip install blspy
cargo fuzz list | xargs -I "%" sh -c "cargo +nightly fuzz run % -- -max_total_time=10 || exit 255"
- name: cargo fuzz (clvm-utils)
run: |
cd clvm-utils
cd crates/clvm-utils
cargo fuzz list | xargs -I "%" sh -c "cargo +nightly fuzz run % -- -max_total_time=20 || exit 255"
- name: cargo fuzz (chia-protocol)
run: |
cd chia-protocol
cd crates/chia-protocol
cargo +nightly fuzz build
cargo fuzz list | xargs -I "%" sh -c "cargo +nightly fuzz run % -- -max_total_time=20 || exit 255"
- name: cargo fuzz (chia-wallet)
run: |
cd chia-wallet
cd crates/chia-wallet
cargo +nightly fuzz build
cargo fuzz list | xargs -I "%" sh -c "cargo +nightly fuzz run % -- -max_total_time=20 || exit 255"

Expand Down
48 changes: 24 additions & 24 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
[workspace]
members = [
"chia-bls",
"chia-bls/fuzz",
"chia-client",
"chia-protocol",
"chia-protocol/fuzz",
"chia_py_streamable_macro",
"chia_streamable_macro",
"chia-ssl",
"chia-tools",
"chia-traits",
"chia-wallet",
"chia-wallet/fuzz",
"clvm-derive",
"clvm-traits",
"clvm-utils",
"clvm-utils/fuzz",
"crates/chia-bls",
"crates/chia-bls/fuzz",
"crates/chia-client",
"crates/chia-protocol",
"crates/chia-protocol/fuzz",
"crates/chia_py_streamable_macro",
"crates/chia_streamable_macro",
"crates/chia-ssl",
"crates/chia-tools",
"crates/chia-traits",
"crates/chia-wallet",
"crates/chia-wallet/fuzz",
"crates/clvm-derive",
"crates/clvm-traits",
"crates/clvm-utils",
"crates/clvm-utils/fuzz",
"fuzz",
"wasm",
"wheel",
Expand All @@ -28,8 +28,8 @@ edition = "2021"
license = "Apache-2.0"
description = "Utility functions and types used by the Chia blockchain full node"
authors = ["Richard Kiss <[email protected]>", "Arvid Norberg <[email protected]>"]
homepage = "https://github.com/Chia-Network/chia_rs/"
repository = "https://github.com/Chia-Network/chia_rs/"
homepage = "https://github.com/Chia-Network/chia_rs"
repository = "https://github.com/Chia-Network/chia_rs"

[features]
py-bindings = ["dep:pyo3"]
Expand All @@ -38,12 +38,12 @@ py-bindings = ["dep:pyo3"]
clvmr = "0.6.0"
hex = "0.4.3"
pyo3 = { version = ">=0.19.0", optional = true }
clvm-utils = { version = "0.5.1", path = "clvm-utils" }
chia-traits = { version = "0.5.2", path = "chia-traits" }
clvm-traits = { version = "0.5.2", path = "clvm-traits" }
clvm-derive = { version = "0.5.2", path = "clvm-derive" }
chia-protocol = { version = "0.5.1", path = "chia-protocol" }
chia-wallet = { version = "0.5.1", path = "chia-wallet" }
clvm-utils = { version = "0.5.1", path = "crates/clvm-utils" }
chia-traits = { version = "0.5.2", path = "crates/chia-traits" }
clvm-traits = { version = "0.5.2", path = "crates/clvm-traits" }
clvm-derive = { version = "0.5.2", path = "crates/clvm-derive" }
chia-protocol = { version = "0.5.1", path = "crates/chia-protocol" }
chia-wallet = { version = "0.5.1", path = "crates/chia-wallet" }
hex-literal = "0.4.1"
thiserror = "1.0.44"

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ crates. There is a tool to generate a fuzzing corpus from a blockchain database.
It's run like this:

```
cd chia-tools
cd crates/chia-tools
cargo run --release --bin gen-corpus -- --help
```

Expand Down
30 changes: 15 additions & 15 deletions bump-version.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,21 @@
tag = sys.argv[2]

our_crates = [
"chia-bls",
"clvm-traits",
"chia-traits",
"chia_py_streamable_macro",
"chia_streamable_macro",
"chia-protocol",
"chia-tools",
"clvm-utils",
"clvm-derive",
"chia-wallet",
"chia-client",
"chia-ssl",
"fuzz",
"chia-wallet/fuzz",
"clvm-utils/fuzz",
"crates/chia-bls",
"crates/clvm-traits",
"crates/chia-traits",
"crates/chia_py_streamable_macro",
"crates/chia_streamable_macro",
"crates/chia-protocol",
"crates/chia-tools",
"crates/clvm-utils",
"crates/clvm-derive",
"crates/chia-wallet",
"crates/chia-client",
"crates/chia-ssl",
"crates/fuzz",
"crates/chia-wallet/fuzz",
"crates/clvm-utils/fuzz",
]

def crates_with_changes() -> Set[str]:
Expand Down
4 changes: 2 additions & 2 deletions chia-bls/Cargo.toml → crates/chia-bls/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ edition = "2021"
license = "Apache-2.0"
description = "BLS signature, verification and aggregation funcions for the Chia blockchain"
authors = ["Arvid Norberg <[email protected]>"]
homepage = "https://github.com/Chia-Network/chia_rs/chia-bls/"
repository = "https://github.com/Chia-Network/chia_rs/chia-bls/"
homepage = "https://github.com/Chia-Network/chia_rs"
repository = "https://github.com/Chia-Network/chia_rs"

[features]
py-bindings = ["dep:pyo3", "chia_py_streamable_macro", "chia-traits/py-bindings"]
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions chia-client/Cargo.toml → crates/chia-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ edition = "2021"
license = "Apache-2.0"
description = "Chia light client and async peer connections."
authors = ["Brandon Haggstrom <[email protected]>"]
homepage = "https://github.com/Chia-Network/chia_rs/chia-client/"
repository = "https://github.com/Chia-Network/chia_rs/chia-client/"
homepage = "https://github.com/Chia-Network/chia_rs"
repository = "https://github.com/Chia-Network/chia_rs"

[dependencies]
chia-protocol = { version = "0.5.1", path = "../chia-protocol" }
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions chia-protocol/Cargo.toml → crates/chia-protocol/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ edition = "2021"
license = "Apache-2.0"
description = "Chia network protocol message types"
authors = ["Arvid Norberg <[email protected]>"]
homepage = "https://github.com/Chia-Network/chia_rs/chia-protocol/"
repository = "https://github.com/Chia-Network/chia_rs/chia-protocol/"
homepage = "https://github.com/Chia-Network/chia_rs"
repository = "https://github.com/Chia-Network/chia_rs"
Rigidity marked this conversation as resolved.
Show resolved Hide resolved

[features]
py-bindings = ["dep:pyo3", "dep:chia_py_streamable_macro", "chia-traits/py-bindings"]
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,8 @@ mod tests {
#[case] expect_parent: &str,
#[case] expect_ph: &str,
) {
let spend_bytes = fs::read(format!("../ff-tests/{spend_file}.spend")).expect("read file");
let spend_bytes =
fs::read(format!("../../ff-tests/{spend_file}.spend")).expect("read file");
let spend = CoinSpend::from_bytes(&spend_bytes).expect("parse CoinSpend");
let bundle = SpendBundle::new(vec![spend], G2Element::default());

Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions chia-ssl/Cargo.toml → crates/chia-ssl/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ edition = "2021"
license = "Apache-2.0"
description = "Chia SSL X.509 certificate generator"
authors = ["Brandon Haggstrom <[email protected]>"]
homepage = "https://github.com/Chia-Network/chia_rs/chia-ssl/"
repository = "https://github.com/Chia-Network/chia_rs/chia-ssl/"
homepage = "https://github.com/Chia-Network/chia_rs"
repository = "https://github.com/Chia-Network/chia_rs"

[dependencies]
lazy_static = "1.4.0"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions chia-tools/Cargo.toml → crates/chia-tools/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ edition = "2021"
license = "Apache-2.0"
description = "Utility functions and types used by the Chia blockchain full node"
authors = ["Arvid Norberg <[email protected]>"]
homepage = "https://github.com/Chia-Network/chia_rs/chia-tools"
repository = "https://github.com/Chia-Network/chia_rs/chia-tools"
homepage = "https://github.com/Chia-Network/chia_rs"
repository = "https://github.com/Chia-Network/chia_rs"

[dependencies]
chia-protocol = { version = "0.5.1", path = "../chia-protocol" }
Expand All @@ -16,7 +16,7 @@ clvm-traits = { version = "0.5.2", path = "../clvm-traits" }
chia-wallet = { version = "0.5.1", path = "../chia-wallet" }
chia-bls = { version = "0.5.1", path = "../chia-bls" }
clvmr = { version = "0.6.0", features = ["counters"] }
chia = { version = "0.5.2", path = ".." }
chia = { version = "0.5.2", path = "../.." }
rusqlite = { version = "0.30.0", features = ["bundled"] }
clap = { version = "4.3.9", features = ["derive"] }
zstd = "0.12.3"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions chia-wallet/Cargo.toml → crates/chia-wallet/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ edition = "2021"
license = "Apache-2.0"
description = "Chia primitives needed for building wallets."
authors = ["Brandon Haggstrom <[email protected]>"]
homepage = "https://github.com/Chia-Network/chia_rs/chia-wallet/"
repository = "https://github.com/Chia-Network/chia_rs/chia-wallet/"
homepage = "https://github.com/Chia-Network/chia_rs"
repository = "https://github.com/Chia-Network/chia_rs"

[dependencies]
clvmr = "0.6.0"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ edition = "2021"
license = "Apache-2.0"
description = "Derive macro to create python bindings for Chia types"
authors = ["Arvid Norberg <[email protected]>"]
homepage = "https://github.com/Chia-Network/chia_rs/chia_py_streamable_macro/"
repository = "https://github.com/Chia-Network/chia_rs/chia_py_streamable_macro/"
homepage = "https://github.com/Chia-Network/chia_rs"
repository = "https://github.com/Chia-Network/chia_rs"

[lib]
proc-macro = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ edition = "2021"
license = "Apache-2.0"
description = "Streamable derive macro for serializing/deserializing types in Chia protocol format"
authors = ["Arvid Norberg <[email protected]>"]
homepage = "https://github.com/Chia-Network/chia_rs/"
repository = "https://github.com/Chia-Network/chia_rs/"
homepage = "https://github.com/Chia-Network/chia_rs"
repository = "https://github.com/Chia-Network/chia_rs"

[lib]
proc-macro = true
Expand Down
4 changes: 2 additions & 2 deletions clvm-derive/Cargo.toml → crates/clvm-derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ edition = "2021"
license = "Apache-2.0"
description = "Derive macros for implementing CLVM traits."
authors = ["Brandon Haggstrom <[email protected]>"]
homepage = "https://github.com/Chia-Network/chia_rs/clvm-derive/"
repository = "https://github.com/Chia-Network/chia_rs/clvm-derive/"
homepage = "https://github.com/Chia-Network/chia_rs"
repository = "https://github.com/Chia-Network/chia_rs"

[lib]
proc-macro = true
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions clvm-traits/Cargo.toml → crates/clvm-traits/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ edition = "2021"
license = "Apache-2.0"
description = "Traits for encoding and decoding CLVM objects."
authors = ["Brandon Haggstrom <[email protected]>"]
homepage = "https://github.com/Chia-Network/chia_rs/clvm-traits/"
repository = "https://github.com/Chia-Network/chia_rs/clvm-traits/"
homepage = "https://github.com/Chia-Network/chia_rs"
repository = "https://github.com/Chia-Network/chia_rs"

[package.metadata.docs.rs]
features = ["derive", "chia-bls"]
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions clvm-utils/Cargo.toml → crates/clvm-utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ edition = "2021"
license = "Apache-2.0"
description = "Utility functions for processing clvm programs and structures"
authors = ["Arvid Norberg <[email protected]>"]
homepage = "https://github.com/Chia-Network/chia_rs/"
repository = "https://github.com/Chia-Network/chia_rs/clvm-utils"
homepage = "https://github.com/Chia-Network/chia_rs"
repository = "https://github.com/Chia-Network/chia_rs"

[dependencies]
clvmr = "0.6.0"
Expand Down
Loading
Loading