Merge pull request #637 from devrandom/2021-08-no-std-cleanup

no-std cleanup
This commit is contained in:
Dr. Maxim Orlovsky 2021-11-12 20:39:16 +01:00 committed by GitHub
commit ff1ed818b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View File

@ -112,6 +112,6 @@ jobs:
- name: Run - name: Run
env: env:
RUSTFLAGS: "-C link-arg=-Tlink.x" RUSTFLAGS: "-C link-arg=-Tlink.x"
CARGO_TARGET_THUMBV7M_NONE_EABI_RUNNER: "qemu-system-arm -cpu cortex-m3 -machine mps2-an385 -m 1G -nographic -semihosting-config enable=on,target=native -kernel" CARGO_TARGET_THUMBV7M_NONE_EABI_RUNNER: "qemu-system-arm -cpu cortex-m3 -machine mps2-an385 -nographic -semihosting-config enable=on,target=native -kernel"
run: cd embedded && cargo run --target thumbv7m-none-eabi run: cd embedded && cargo run --target thumbv7m-none-eabi

View File

@ -26,7 +26,7 @@ secp-recovery = ["secp256k1/recovery"]
# Instead no-std enables additional features required for this crate to be usable without std. # Instead no-std enables additional features required for this crate to be usable without std.
# As a result, both can be enabled without conflict. # As a result, both can be enabled without conflict.
std = ["secp256k1/std", "bitcoin_hashes/std", "bech32/std"] std = ["secp256k1/std", "bitcoin_hashes/std", "bech32/std"]
no-std = ["hashbrown", "core2/alloc", "bitcoin_hashes/alloc"] no-std = ["hashbrown", "core2/alloc", "bitcoin_hashes/alloc", "secp256k1/alloc"]
[package.metadata.docs.rs] [package.metadata.docs.rs]
features = [ "std", "secp-recovery", "base64", "rand", "use-serde", "bitcoinconsensus" ] features = [ "std", "secp-recovery", "base64", "rand", "use-serde", "bitcoinconsensus" ]

View File

@ -1,2 +1,2 @@
export RUSTFLAGS="-C link-arg=-Tlink.x" export RUSTFLAGS="-C link-arg=-Tlink.x"
export CARGO_TARGET_THUMBV7M_NONE_EABI_RUNNER="qemu-system-arm -cpu cortex-m3 -machine mps2-an385 -m 1G -nographic -semihosting-config enable=on,target=native -kernel" export CARGO_TARGET_THUMBV7M_NONE_EABI_RUNNER="qemu-system-arm -cpu cortex-m3 -machine mps2-an385 -nographic -semihosting-config enable=on,target=native -kernel"

View File

@ -25,7 +25,7 @@ use cortex_m_semihosting::{debug, hprintln};
#[global_allocator] #[global_allocator]
static ALLOCATOR: CortexMHeap = CortexMHeap::empty(); static ALLOCATOR: CortexMHeap = CortexMHeap::empty();
const HEAP_SIZE: usize = 1024 * 512; // 512 KB const HEAP_SIZE: usize = 1024 * 256; // 256 KB
#[entry] #[entry]
fn main() -> ! { fn main() -> ! {