From 6c95cb8e62438541270cb4da82e7419ba72e8169 Mon Sep 17 00:00:00 2001 From: Josh Wilson Date: Sun, 19 May 2024 09:27:13 +0900 Subject: [PATCH] feat(faucet): allow gifting by default disable gifting when building for release --- Justfile | 4 ++-- sn_faucet/Cargo.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Justfile b/Justfile index ae70d54708..a70d84f3b3 100644 --- a/Justfile +++ b/Justfile @@ -113,7 +113,7 @@ build-release-artifacts arch: if [[ $arch == arm* || $arch == armv7* || $arch == aarch64* ]]; then cargo install cross - cross build --release --target $arch --bin faucet --features=distribution + cross build --release --target $arch --bin faucet --features=distribution --no-default-features cross build --release --target $arch --bin node-launchpad cross build --release --features="network-contacts,distribution" --target $arch --bin safe cross build --release --features=network-contacts --target $arch --bin safenode @@ -122,7 +122,7 @@ build-release-artifacts arch: cross build --release --target $arch --bin safenode_rpc_client cross build --release --target $arch --bin sn_auditor else - cargo build --release --target $arch --bin faucet --features=distribution + cargo build --release --target $arch --bin faucet --features=distribution --no-default-features cargo build --release --target $arch --bin node-launchpad cargo build --release --features="network-contacts,distribution" --target $arch --bin safe cargo build --release --features=network-contacts --target $arch --bin safenode diff --git a/sn_faucet/Cargo.toml b/sn_faucet/Cargo.toml index 3bd6fc28d0..ae5b76dfda 100644 --- a/sn_faucet/Cargo.toml +++ b/sn_faucet/Cargo.toml @@ -11,7 +11,7 @@ repository = "https://github.com/maidsafe/safe_network" version = "0.4.17" [features] -default = [] +default = ["gifting"] distribution = ["base64", "bitcoin", "minreq"] gifting = []