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

Features improved #39

Merged
merged 5 commits into from
Sep 16, 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
12 changes: 6 additions & 6 deletions Cargo.lock

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

14 changes: 7 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ edition = "2021"
license-file = "LICENSE"
readme = "README.md"
repository = "https://github.com/iosis-tech/swiftness"
version = "0.1.0"
version = "0.1.1"

[workspace.dependencies]
blake2 = { version = "0.10.6", default-features = false }
Expand All @@ -39,9 +39,9 @@ starknet-types-core = { version = "0.1.5", default-features = false }
thiserror = "1.0.61"
thiserror-no-std = "2.0.2"

swiftness_air = { path = "crates/air", default-features = false, version = "0.1.0" }
swiftness_commitment = { path = "crates/commitment", default-features = false, version = "0.1.0" }
swiftness_fri = { path = "crates/fri", default-features = false, version = "0.1.0" }
swiftness_pow = { path = "crates/pow", default-features = false, version = "0.1.0" }
swiftness_stark = { path = "crates/stark", default-features = false, version = "0.1.0" }
swiftness_transcript = { path = "crates/transcript", default-features = false, version = "0.1.0" }
swiftness_air = { path = "crates/air", default-features = false, version = "0.1.1" }
swiftness_commitment = { path = "crates/commitment", default-features = false, version = "0.1.1" }
swiftness_fri = { path = "crates/fri", default-features = false, version = "0.1.1" }
swiftness_pow = { path = "crates/pow", default-features = false, version = "0.1.1" }
swiftness_stark = { path = "crates/stark", default-features = false, version = "0.1.1" }
swiftness_transcript = { path = "crates/transcript", default-features = false, version = "0.1.1" }
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<div align="center">

![Version](https://img.shields.io/badge/v0.1.0-green?style=flat-square&logo=git&logoColor=white&label=version)
![Version](https://img.shields.io/badge/v0.1.1-green?style=flat-square&logo=git&logoColor=white&label=version)
![Continuous Integration](https://img.shields.io/github/actions/workflow/status/iosis-tech/swiftness/ci.yml?style=flat-square&logo=githubactions&logoColor=white&label=Continuous%20Integration)

[![Crates.io Version](https://img.shields.io/crates/v/swiftness?style=flat-square&logo=lootcrate)](https://crates.io/crates/swiftness)
Expand Down
16 changes: 8 additions & 8 deletions cli/Cargo.lock

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

14 changes: 7 additions & 7 deletions cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,27 @@ edition = "2021"
license-file = "LICENSE"
readme = "../README.md"
repository = "https://github.com/iosis-tech/swiftness"
version = "0.1.0"
version = "0.1.1"

[dependencies]
clap = { version = "4.4.4", features = ["derive"] }

swiftness_air = { path = "../crates/air", default-features = false, features = [
"std",
], version = "0.1.0" }
], version = "0.1.1" }
swiftness_commitment = { path = "../crates/commitment", default-features = false, features = [
"std",
], version = "0.1.0" }
], version = "0.1.1" }
swiftness_fri = { path = "../crates/fri", default-features = false, features = [
"std",
], version = "0.1.0" }
], version = "0.1.1" }
swiftness_pow = { path = "../crates/pow", default-features = false, features = [
"std",
], version = "0.1.0" }
], version = "0.1.1" }
swiftness_stark = { path = "../crates/stark", default-features = false, features = [
"std",
], version = "0.1.0" }
swiftness_proof_parser = { path = "../proof_parser", version = "0.1.0" }
], version = "0.1.1" }
swiftness_proof_parser = { path = "../proof_parser", version = "0.1.1" }

[features]
default = ["recursive", "keccak_160_lsb", "stone5"]
Expand Down
3 changes: 2 additions & 1 deletion crates/air/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ keccak_160_lsb = ["swiftness_commitment/keccak_160_lsb"]
keccak_248_lsb = ["swiftness_commitment/keccak_248_lsb"]
blake2s_160_lsb = ["swiftness_commitment/blake2s_160_lsb"]
blake2s_248_lsb = ["swiftness_commitment/blake2s_248_lsb"]
test_fixtures = []

[dependencies]
num-bigint.workspace = true
Expand All @@ -41,4 +42,4 @@ thiserror = { optional = true, workspace = true }
thiserror-no-std.workspace = true

swiftness_commitment.workspace = true
swiftness_transcript.workspace = true
swiftness_transcript.workspace = true
7 changes: 7 additions & 0 deletions crates/air/src/layout/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,19 @@ use starknet_crypto::Felt;
use starknet_types_core::felt::FeltIsZeroError;
use swiftness_transcript::transcript::Transcript;

#[cfg(feature = "dex")]
pub mod dex;
#[cfg(feature = "dynamic")]
pub mod dynamic;
#[cfg(feature = "recursive")]
pub mod recursive;
#[cfg(feature = "recursive_with_poseidon")]
pub mod recursive_with_poseidon;
#[cfg(feature = "small")]
pub mod small;
#[cfg(feature = "starknet")]
pub mod starknet;
#[cfg(feature = "starknet_with_keccak")]
pub mod starknet_with_keccak;

// StarkCurve
Expand Down
3 changes: 2 additions & 1 deletion crates/air/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ pub mod consts;
pub mod diluted;
pub mod domains;
pub mod dynamic;
pub mod fixtures;
pub mod layout;
pub mod periodic_columns;
pub mod public_memory;
pub mod trace;
pub mod types;

#[cfg(any(test, feature = "test_fixtures"))]
pub mod fixtures;
#[cfg(test)]
pub mod tests;
1 change: 1 addition & 0 deletions crates/fri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ keccak_160_lsb = ["swiftness_commitment/keccak_160_lsb"]
keccak_248_lsb = ["swiftness_commitment/keccak_248_lsb"]
blake2s_160_lsb = ["swiftness_commitment/blake2s_160_lsb"]
blake2s_248_lsb = ["swiftness_commitment/blake2s_248_lsb"]
test_fixtures = []

[dependencies]
num-bigint.workspace = true
Expand Down
3 changes: 2 additions & 1 deletion crates/fri/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@ extern crate std;

pub mod config;
pub mod first_layer;
pub mod fixtures;
pub mod formula;
pub mod fri;
pub mod group;
pub mod last_layer;
pub mod layer;
pub mod types;

#[cfg(any(test, feature = "test_fixtures"))]
pub mod fixtures;
#[cfg(test)]
pub mod tests;
1 change: 1 addition & 0 deletions crates/pow/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ std = [
]
keccak = []
blake2s = []
test_fixtures = []

[dependencies]
blake2.workspace = true
Expand Down
3 changes: 2 additions & 1 deletion crates/pow/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ extern crate alloc;
extern crate std;

pub mod config;
pub mod fixtures;
pub mod pow;

#[cfg(any(test, feature = "test_fixtures"))]
pub mod fixtures;
#[cfg(test)]
pub mod tests;
10 changes: 10 additions & 0 deletions crates/stark/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ blake2s_248_lsb = [
"swiftness_pow/blake2s",
"swiftness_commitment/blake2s_248_lsb"
]
test_fixtures = [
"swiftness_air/test_fixtures",
"swiftness_fri/test_fixtures",
"swiftness_pow/test_fixtures",
]

[dependencies]
serde_with.workspace = true
Expand All @@ -61,3 +66,8 @@ swiftness_commitment.workspace = true
swiftness_fri.workspace = true
swiftness_pow.workspace = true
swiftness_transcript.workspace = true

[dev-dependencies]
swiftness_air = { workspace = true, features = ["test_fixtures"] }
swiftness_fri = { workspace = true, features = ["test_fixtures"] }
swiftness_pow = { workspace = true, features = ["test_fixtures"] }
3 changes: 2 additions & 1 deletion crates/stark/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,12 @@ import_module_if_layout!(commit);
import_module_if_layout!(oods);
import_module_if_layout!(stark);
import_module_if_layout!(verify);
import_module_if_layout!(fixtures);

pub mod config;
pub mod queries;
pub mod types;

#[cfg(any(test, feature = "test_fixtures"))]
pub mod fixtures;
#[cfg(test)]
pub mod tests;
2 changes: 1 addition & 1 deletion examples/no_std_build/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "no_std_build"
version = "0.1.0"
version = "0.1.1"
edition = "2021"

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion proof_parser/Cargo.lock

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

2 changes: 1 addition & 1 deletion proof_parser/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ edition = "2021"
license-file = "LICENSE"
readme = "README.md"
repository = "https://github.com/iosis-tech/swiftness"
version = "0.1.0"
version = "0.1.1"

[dependencies]
anyhow = "1.0.80"
Expand Down
Loading
Loading