Skip to content
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
6 changes: 6 additions & 0 deletions contracts/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,9 @@ members = ["utility_contracts", "price_oracle", "resource-token", "common", "set

[workspace.dependencies]
soroban-sdk = "23.2.4"

[profile.release]
opt-level = "z"
lto = true
codegen-units = 1
panic = "abort"
3 changes: 1 addition & 2 deletions contracts/common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ doctest = false

[dependencies]
soroban-sdk = { workspace = true }
wee_alloc = { version = "0.4.5", optional = true }

[features]
default = []
wasm = ["wee_alloc"]
wasm = []
3 changes: 0 additions & 3 deletions contracts/common/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
#![no_std]
extern crate alloc;

#[cfg(all(target_arch = "wasm32", feature = "wasm"))]
#[global_allocator]
static ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT;

pub mod errors;
pub mod graceful_degradation;
Expand Down
1 change: 0 additions & 1 deletion contracts/fees/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ doctest = false

[dependencies]
soroban-sdk = { workspace = true }
wee_alloc = "0.4.5"

[dev-dependencies]
soroban-sdk = { workspace = true, features = ["testutils"] }
3 changes: 1 addition & 2 deletions contracts/fees/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#![no_std]

#[global_allocator]
static ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT;


use soroban_sdk::xdr::ToXdr;
use soroban_sdk::{
Expand Down
1 change: 0 additions & 1 deletion contracts/oracle-aggregator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ crate-type = ["lib", "cdylib"]
doctest = false

[dependencies]
wee_alloc = "0.4.5"
soroban-sdk = { workspace = true }

[dev-dependencies]
Expand Down
3 changes: 1 addition & 2 deletions contracts/oracle-aggregator/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@
//! value (or a conservative constant on cold start) and flags it via
//! `used_fallback`, so consumers can react rather than trust a silent value.

#[global_allocator]
static ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT;


pub mod adapter;
mod aggregation;
Expand Down
1 change: 0 additions & 1 deletion contracts/price_oracle/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ crate-type = ["lib", "cdylib"]
doctest = false

[dependencies]
wee_alloc = "0.4.5"
soroban-sdk = { workspace = true }

[dev-dependencies]
Expand Down
3 changes: 1 addition & 2 deletions contracts/price_oracle/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#![no_std]

#[global_allocator]
static ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT;


use soroban_sdk::xdr::ToXdr;
use soroban_sdk::{
Expand Down
1 change: 0 additions & 1 deletion contracts/settlement/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ doctest = false
[dependencies]
soroban-sdk = { workspace = true }
utility-contracts-common = { path = "../common", features = ["wasm"] }
wee_alloc = "0.4.5"

[dev-dependencies]
soroban-sdk = { workspace = true, features = ["testutils"] }
3 changes: 1 addition & 2 deletions contracts/settlement/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#![no_std]

#[global_allocator]
static ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT;


mod constants;
mod conversion;
Expand Down
1 change: 0 additions & 1 deletion contracts/utility_contracts/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ crate-type = ["lib", "cdylib"]
doctest = false

[dependencies]
wee_alloc = "0.4.5"
soroban-sdk = { workspace = true }

[dev-dependencies]
Expand Down
3 changes: 1 addition & 2 deletions contracts/utility_contracts/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#![no_std]
extern crate alloc;

#[global_allocator]
static ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT;


use soroban_sdk::xdr::ToXdr;
use soroban_sdk::{
Expand Down
Loading
Loading