Skip to content
Open
8 changes: 8 additions & 0 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ members = [
"contracts/refund-vault",
"contracts/refund-vault-factory",
"contracts/testutils",
"contracts/upto-authorization",
]
resolver = "2"

Expand Down
2 changes: 1 addition & 1 deletion contracts/multisig-account/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ soroban-sdk = { workspace = true }
default = []
testutils = ["soroban-sdk/testutils"]

[dev-dependencies]
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
soroban-sdk = { workspace = true, features = ["testutils"] }
2 changes: 1 addition & 1 deletion contracts/receipt-shard/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ accensa-common = { workspace = true }
sha2 = { version = "0.10.9", default-features = false }
soroban-sdk = { workspace = true }

[dev-dependencies]
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
soroban-sdk = { workspace = true, features = ["testutils"] }
2 changes: 2 additions & 0 deletions contracts/testutils/src/budget.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![cfg(not(target_arch = "wasm32"))]

use soroban_sdk::Env;

#[derive(Clone, Debug, Eq, PartialEq)]
Expand Down
6 changes: 6 additions & 0 deletions contracts/testutils/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
#![cfg_attr(target_arch = "wasm32", no_std)]

#[cfg(not(target_arch = "wasm32"))]
pub mod budget;

#[cfg(target_arch = "wasm32")]
pub mod budget;
19 changes: 19 additions & 0 deletions contracts/upto-authorization/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[package]
name = "upto-authorization"
version = "0.1.0"
edition = "2021"

[lints]
workspace = true

[lib]
crate-type = ["cdylib", "rlib"]

[dependencies]
soroban-sdk = { workspace = true }

[dev-dependencies]
proptest = "1.4"

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
soroban-sdk = { workspace = true, features = ["testutils"] }
13 changes: 13 additions & 0 deletions contracts/upto-authorization/build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
use std::process::Command;

fn main() {
let commit = Command::new("git")
.args(["rev-parse", "HEAD"])
.output()
.ok()
.and_then(|output| String::from_utf8(output.stdout).ok())
.map(|s| s.trim().to_string())
.unwrap_or_else(|| "unknown".to_string());

println!("cargo:rustc-env=GIT_SHA={}", commit);
}
Loading
Loading