Skip to content

Commit

Permalink
downgrade manta-rs (#167)
Browse files Browse the repository at this point in the history
* downgrade manta-rs
* feat: upgrade workspace
* wip: test reduced CI for docs
* fix: workspace doesnt work for most of ci

Signed-off-by: Brandon H. Gomes <bhgomes@pm.me>
Co-authored-by: Brandon H. Gomes <bhgomes@pm.me>
  • Loading branch information
Kevingislason and bhgomes authored Aug 24, 2022
1 parent 0e807a0 commit ac7466b
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 17 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- run: rustup update nightly && rustup default nightly
- run: RUSTDOCFLAGS="-D warnings --cfg doc_cfg" cargo +nightly doc --workspace --all-features --no-deps --document-private-items
- run: RUSTDOCFLAGS="-D warnings --cfg doc_cfg" cargo +nightly doc --all-features --no-deps --document-private-items
lint:
name: Lint (${{ matrix.os }} + ${{ matrix.channel }})
needs: [format, format-cargo-toml, docs]
Expand All @@ -52,10 +52,10 @@ jobs:
- uses: actions/checkout@v3
- run: rustup update ${{ matrix.channel }} && rustup default ${{ matrix.channel }} && rustup component add clippy
- run: cargo install cargo-hack
- run: cargo hack clippy --workspace --feature-powerset
- run: cargo hack clippy --workspace --feature-powerset --bins
- run: cargo hack clippy --workspace --feature-powerset --examples
- run: cargo hack clippy --workspace --feature-powerset --tests
- run: cargo hack clippy --feature-powerset
- run: cargo hack clippy --feature-powerset --bins
- run: cargo hack clippy --feature-powerset --examples
- run: cargo hack clippy --feature-powerset --tests
test:
name: Test (${{ matrix.os }} + ${{ matrix.channel }})
needs: [format, format-cargo-toml, docs]
Expand All @@ -74,7 +74,7 @@ jobs:
- uses: actions/checkout@v3
- run: rustup update ${{ matrix.channel }} && rustup default ${{ matrix.channel }}
- run: cargo install cargo-nextest
- run: cargo nextest run --workspace --release --all-features
- run: cargo nextest run --release --all-features
compile-bench:
name: Compile Benchmarks (${{ matrix.os }} + ${{ matrix.channel }})
needs: [format, format-cargo-toml, docs]
Expand All @@ -92,4 +92,4 @@ jobs:
steps:
- uses: actions/checkout@v3
- run: rustup update ${{ matrix.channel }} && rustup default ${{ matrix.channel }}
- run: cargo bench --workspace --no-run --all-features
- run: cargo bench --no-run --all-features
14 changes: 9 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ keywords = [""]
description = "Manta Signer"
publish = false

[workspace]
resolver = "2"
members = ["ui/src-tauri"]

[package.metadata.docs.rs]
# To build locally:
# RUSTDOCFLAGS="--cfg doc_cfg" cargo +nightly doc --all-features --open
Expand All @@ -36,11 +40,11 @@ derivative = { version = "2.2.0", default-features = false, features = ["use_cor
dirs-next = { version = "2.0.0", default-features = false }
futures = { version = "0.3.17", default-features = false, features = ["alloc"] }
http-types = { version = "2.12.0", default-features = false }
manta-accounting = { git = "https://github.com/manta-network/manta-rs", tag = "v0.5.4", default-features = false, features = ["cocoon-fs"] }
manta-crypto = { git = "https://github.com/manta-network/manta-rs", tag = "v0.5.4", default-features = false, features = ["getrandom"] }
manta-parameters = { git = "https://github.com/manta-network/manta-rs", tag = "v0.5.4", default-features = false, features = ["download"] }
manta-pay = { git = "https://github.com/manta-network/manta-rs", tag = "v0.5.4", default-features = false, features = ["bs58", "groth16", "serde", "wallet"] }
manta-util = { git = "https://github.com/manta-network/manta-rs", tag = "v0.5.4", default-features = false }
manta-accounting = { git = "https://github.com/manta-network/manta-rs", tag = "v0.5.2", default-features = false, features = ["cocoon-fs"] }
manta-crypto = { git = "https://github.com/manta-network/manta-rs", tag = "v0.5.2", default-features = false, features = ["getrandom"] }
manta-parameters = { git = "https://github.com/manta-network/manta-rs", tag = "v0.5.2", default-features = false, features = ["download"] }
manta-pay = { git = "https://github.com/manta-network/manta-rs", tag = "v0.5.2", default-features = false, features = ["bs58", "groth16", "serde", "wallet"] }
manta-util = { git = "https://github.com/manta-network/manta-rs", tag = "v0.5.2", default-features = false }
parking_lot = { version = "0.12.1", default-features = false }
password-hash = { version = "0.4.2", default-features = false, features = ["alloc"] }
secrecy = { version = "0.8.0", default-features = false, features = ["alloc"] }
Expand Down
10 changes: 5 additions & 5 deletions src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ use manta_pay::{
HierarchicalKeyDerivationFunction, Signer, SignerParameters, SignerState, UtxoAccumulator,
},
};
use manta_util::{from_variant, serde::Serialize};
use manta_util::{from_variant_impl, serde::Serialize};
use parking_lot::Mutex;
use std::{
io,
Expand Down Expand Up @@ -95,10 +95,10 @@ pub enum Error {
AuthorizationError,
}

from_variant!(Error, AddrParseError, AddrParseError);
from_variant!(Error, JoinError, JoinError);
from_variant!(Error, SaveError, SaveError<File>);
from_variant!(Error, Io, io::Error);
from_variant_impl!(Error, AddrParseError, AddrParseError);
from_variant_impl!(Error, JoinError, JoinError);
from_variant_impl!(Error, SaveError, SaveError<File>);
from_variant_impl!(Error, Io, io::Error);

impl From<Error> for tide::Error {
#[inline]
Expand Down

1 comment on commit ac7466b

@vercel
Copy link

@vercel vercel bot commented on ac7466b Aug 24, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.