Skip to content

Commit fe494bf

Browse files
authored
Try to remove ring and webpki dep from parachain (#3541)
* try to remove ring * update * init * test compiles * fix * use x509-cert * update * update tc * update clippy * fix * add back fuzz
1 parent fc576a0 commit fe494bf

File tree

36 files changed

+2659
-2362
lines changed

36 files changed

+2659
-2362
lines changed

parachain/Cargo.lock

Lines changed: 340 additions & 539 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

parachain/Cargo.toml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ hex-literal = { version = "0.4.1", default-features = false }
9696
similar-asserts = { version = "1.6.0" }
9797
sha3 = { version = "0.10", default-features = false }
9898
sha2 = { version = "0.10", default-features = false }
99+
p256 = { version = "0.13", default-features = false, features = ["ecdsa"] }
100+
ecdsa = { version = "0.16", default-features = false }
99101
futures = { version = "0.3.30", features = ["compat"] }
100102
jsonrpsee = { version = "0.24.8", features = ["server"] }
101103
tokio = { version = "1.40.0", features = ["macros", "sync"] }
@@ -106,8 +108,6 @@ num_enum = { version = "0.7.3", default-features = false }
106108
num-integer = { version = "0.1", default-features = false }
107109
rustc-hex = { version = "2.0.1", default-features = false }
108110
x509-cert = { version = "0.2", default-features = false }
109-
ring = { version = "0.16.20", default-features = false, features = ["alloc"] }
110-
webpki = { version = "=0.102.0-alpha.3", git = "https://github.com/rustls/webpki", rev = "da923ed", package = "rustls-webpki", default-features = false, features = ["alloc", "ring"] }
111111
# to be compatible with astar-frontier
112112
evm = { git = "https://github.com/rust-ethereum/evm", rev = "e81732d", default-features = false }
113113

@@ -318,6 +318,3 @@ pallet-guardian = { path = "pallets/collab-ai/guardian", default-features = fals
318318
pallet-halving-mint = { path = "pallets/collab-ai/halving-mint", default-features = false }
319319
pallet-pool-proposal = { path = "pallets/collab-ai/pool-proposal", default-features = false }
320320
pallet-investing-pool = { path = "pallets/collab-ai/investing-pool", default-features = false }
321-
322-
[patch.crates-io]
323-
ring = { git = "https://github.com/betrusted-io/ring-xous", branch = "0.16.20-cleanup" }

parachain/node/src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
// along with Litentry. If not, see <https://www.gnu.org/licenses/>.
1616

1717
#![warn(unused_extern_crates)]
18+
#![allow(clippy::result_large_err)]
1819

1920
mod chain_specs;
2021
mod cli;

parachain/pallets/account-fix/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
//! A pallet for temporary fix of onchain accountInfo.
1818
//! No storage for this pallet and it should be removed right after fixing.
1919
#![cfg_attr(not(feature = "std"), no_std)]
20+
#![allow(clippy::useless_conversion)]
2021

2122
use frame_support::{
2223
pallet_prelude::*,

parachain/pallets/bitacross/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
// along with Litentry. If not, see <https://www.gnu.org/licenses/>.
1616

1717
#![cfg_attr(not(feature = "std"), no_std)]
18+
#![allow(clippy::useless_conversion)]
1819

1920
use frame_support::{
2021
dispatch::{DispatchResult, DispatchResultWithPostInfo},

parachain/pallets/bridge/assets-handler/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
//! A pallet for handling bridge transfer lgoic.
1818
#![cfg_attr(not(feature = "std"), no_std)]
19+
#![allow(clippy::useless_conversion)]
20+
1921
#[cfg(test)]
2022
mod mock;
2123
#[cfg(test)]

parachain/pallets/bridge/bridge-transfer/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
// Ensure we're `no_std` when compiling for Wasm.
1818
#![cfg_attr(not(feature = "std"), no_std)]
19+
#![allow(clippy::useless_conversion)]
1920

2021
pub use pallet::*;
2122

parachain/pallets/bridge/chain-bridge/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
// Ensure we're `no_std` when compiling for Wasm.
1818
#![cfg_attr(not(feature = "std"), no_std)]
19+
#![allow(clippy::useless_conversion)]
1920

2021
#[cfg(test)]
2122
mod mock;

parachain/pallets/collab-ai/aiusd-convertor/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
//! Pallet for converting among AIUSD and other stable token.
1818
//!
1919
#![cfg_attr(not(feature = "std"), no_std)]
20+
#![allow(clippy::useless_conversion)]
21+
2022
use frame_support::{
2123
pallet_prelude::*,
2224
traits::{

parachain/pallets/collab-ai/halving-mint/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
3333
#![cfg_attr(not(feature = "std"), no_std)]
3434
#![allow(clippy::too_many_arguments)]
35+
#![allow(clippy::useless_conversion)]
3536

3637
use frame_support::traits::tokens::{
3738
fungibles::{metadata::Mutate as MMutate, Create, Inspect, Mutate},

0 commit comments

Comments
 (0)