Skip to content

Commit

Permalink
replaces with 'rules' and 'rules-uniffi' crate
Browse files Browse the repository at this point in the history
  • Loading branch information
Sajjon committed Nov 22, 2024
1 parent 409a7d6 commit a3d1fa6
Show file tree
Hide file tree
Showing 142 changed files with 434 additions and 19,080 deletions.
1,106 changes: 367 additions & 739 deletions Cargo.lock

Large diffs are not rendered by default.

49 changes: 12 additions & 37 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,40 +1,15 @@
[package]
name = "use_factors"
version = "0.1.0"
edition = "2021"
[workspace]
resolver = "2"
members = ["crates/rules", "crates/rules-uniffi"]

[dependencies]
actix-rt = "2.10.0"
async-trait = "0.1.80"
derive-getters = "0.4.0"
[profile.release]
incremental = false
panic = 'unwind'
codegen-units = 1

# 1.0.0
derive_more = { git = "https://github.com/JelteF/derive_more", rev = "d7f5b9e94d024790682f6fc4dcca13941cce64c8", features = [
"debug",
"display",
"from_str",
] }
[profile.profiling]
inherits = "release"
debug = true

indexmap = "2.2.6"
indexset = "0.4.0"
itertools = "0.13.0"
once_cell = "1.19.0"
rand = "0.8.5"
sha2 = "0.10.8"
# strum = "0.26.1"
strum = { git = "https://github.com/Peternator7/strum/", rev = "f746c3699acf150112e26c00e6c8ca666d8d068d", features = [
"derive",
] }
thiserror = "1.0.61"
uuid = { version = "1.9.0", features = ["v4"] }
pretty_assertions = "1.4.0"


log = "0.4.20"
sensible-env-logger = "0.3.2"

pretty_env_logger = { git = "https://github.com/seanmonstar/pretty-env-logger/", rev = "0e238400e18649415dc710c025e99c009a1bb744" }
hex = "0.4.3"
enum-as-inner = "0.6.0"
futures = "0.3.30"
enum-iterator = "2.1.0"
[workspace.dependencies]
thiserror = "2.0.3"
27 changes: 27 additions & 0 deletions crates/rules-uniffi/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
[package]
name = "rules-uniffi"
version = "0.1.0"
edition = "2021"


[dependencies]
rules = { path = "../rules" }

# uniffi = "0.27.1"
uniffi = { git = "https://github.com/mozilla/uniffi-rs/", rev = "6f33088e8100a2ea9586c8c3ecf98ab51d5aba62", features = [
"cli",
] }

thiserror = { workspace = true }

[dev-dependencies]
# uniffi = "0.27.1"
uniffi = { git = "https://github.com/mozilla/uniffi-rs/", rev = "6f33088e8100a2ea9586c8c3ecf98ab51d5aba62", features = [
"bindgen-tests",
] }

[build-dependencies]
# uniffi = "0.27.1"
uniffi = { git = "https://github.com/mozilla/uniffi-rs/", rev = "6f33088e8100a2ea9586c8c3ecf98ab51d5aba62", features = [
"build",
] }
Empty file added crates/rules-uniffi/src/lib.rs
Empty file.
7 changes: 7 additions & 0 deletions crates/rules/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[package]
name = "rules"
version = "0.1.0"
edition = "2021"

[dependencies]
thiserror = { workspace = true }
10 changes: 10 additions & 0 deletions crates/rules/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
mod rules;

pub mod prelude {

pub(crate) use crate::rules::*;

pub(crate) use thiserror::Error as ThisError;
}

pub use prelude::*;
8 changes: 8 additions & 0 deletions crates/rules/src/rules/error.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
use crate::prelude::*;


#[derive(Clone, Copy, Debug, PartialEq, Eq, ThisError)]
pub enum Error {
#[error("Unknown")]
Unknown,
}
3 changes: 3 additions & 0 deletions crates/rules/src/rules/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
mod error;

pub use error::*;
34 changes: 0 additions & 34 deletions src/derivation/collector/key_derivation_outcome.rs

This file was deleted.

50 changes: 0 additions & 50 deletions src/derivation/collector/key_ring.rs

This file was deleted.

169 changes: 0 additions & 169 deletions src/derivation/collector/keys_collector.rs

This file was deleted.

Loading

0 comments on commit a3d1fa6

Please sign in to comment.