Skip to content

Commit

Permalink
Move async-signature and signature-derive to toplevel
Browse files Browse the repository at this point in the history
These crates were previously nested under `signature/async` and
`signature/derive`, which complicates tooling that expects crates to be
in toplevel directories, and as things currently stand also meant that
releases of the `signature` crate accidentally included stale copies of
the other two crates.

This commit moves them to toplevel `async-signature` and
`signature-derive` directories.
  • Loading branch information
tarcieri committed Nov 12, 2023
1 parent c4cd5eb commit fc5caa8
Show file tree
Hide file tree
Showing 17 changed files with 14 additions and 8 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/async-signature.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@ name: async-signature
on:
pull_request:
paths:
- "async-signature/**"
- "signature/**"
- "Cargo.*"
push:
branches: master

defaults:
run:
working-directory: signature/async
working-directory: async-signature

env:
CARGO_INCREMENTAL: 0
Expand Down Expand Up @@ -43,5 +44,5 @@ jobs:
- run: cargo update -Z minimal-versions
- uses: dtolnay/rust-toolchain@stable
- uses: RustCrypto/actions/cargo-hack-install@master
- run: rm ../../Cargo.toml
- run: rm ../Cargo.toml
- run: cargo hack test --release --feature-powerset
1 change: 1 addition & 0 deletions .github/workflows/signature.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
pull_request:
paths:
- "signature/**"
- "signature-derive/**"
- "Cargo.*"
push:
branches: master
Expand Down
5 changes: 4 additions & 1 deletion Cargo.lock

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

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
resolver = "2"
members = [
"aead",
"async-signature",
"cipher",
"crypto",
"crypto-common",
Expand All @@ -10,7 +11,7 @@ members = [
"kem",
"password-hash",
"signature",
"signature/async",
"signature-derive",
"universal-hash",
]

Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions signature/async/Cargo.toml → async-signature/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ version = "0.4.0-pre"
authors = ["RustCrypto Developers"]
license = "Apache-2.0 OR MIT"
documentation = "https://docs.rs/async-signature"
repository = "https://github.com/RustCrypto/traits/tree/master/signature/async"
repository = "https://github.com/RustCrypto/traits/tree/master/async-signature"
readme = "README.md"
keywords = ["crypto", "ecdsa", "ed25519", "signature", "signing"]
categories = ["cryptography", "no-std"]
Expand All @@ -14,7 +14,7 @@ rust-version = "1.60"

[dependencies]
async-trait = "0.1.9"
signature = { version = "=2.2.0-pre", path = ".." }
signature = ">= 2.0, <2.3"

[features]
digest = ["signature/digest"]
Expand Down
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,7 +5,7 @@ authors = ["RustCrypto Developers"]
license = "Apache-2.0 OR MIT"
description = "Custom derive support for the 'signature' crate"
documentation = "https://docs.rs/signature"
repository = "https://github.com/RustCrypto/traits/tree/master/signature/derive"
repository = "https://github.com/RustCrypto/traits/tree/master/signature-derive"
readme = "README.md"
edition = "2021"
rust-version = "1.56"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion signature/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ edition = "2021"
rust-version = "1.60"

[dependencies]
derive = { package = "signature_derive", version = "2", optional = true, path = "derive" }
derive = { package = "signature_derive", version = "2", optional = true, path = "../signature-derive" }
digest = { version = "0.10.6", optional = true, default-features = false }
rand_core = { version = "0.6.4", optional = true, default-features = false }

Expand Down

0 comments on commit fc5caa8

Please sign in to comment.