Skip to content

Commit 21351cc

Browse files
committed
Add no_std target to CI
Signed-off-by: aeryz <[email protected]>
1 parent 97954a3 commit 21351cc

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.circleci/config.yml

+7-4
Original file line numberDiff line numberDiff line change
@@ -260,9 +260,12 @@ jobs:
260260
name: Add wasm32 target
261261
command: rustup target add wasm32-unknown-unknown && rustup target list --installed
262262
- run:
263-
name: Build library for native target (no_std)
263+
name: Add no_std target
264+
command: rustup target add thumbv7em-none-eabi && rustup target list --installed
265+
- run:
266+
name: Build library for no_std target
264267
working_directory: ~/project/packages/std
265-
command: cargo build --locked --no-default-features
268+
command: cargo build --locked --no-default-features --target thumbv7em-none-eabi
266269
- run:
267270
name: Build library for native target (only "std" feature)
268271
working_directory: ~/project/packages/std
@@ -276,9 +279,9 @@ jobs:
276279
working_directory: ~/project/packages/std
277280
command: cargo test --locked --no-default-features --features std
278281
- run:
279-
name: Build library for native target (all features "no_std")
282+
name: Build library for no_std target (all features "no_std")
280283
working_directory: ~/project/packages/std
281-
command: cargo build --locked --no-default-features --features abort,iterator,staking,stargate,std,cosmwasm_1_1
284+
command: cargo build --locked --no-default-features --features abort,iterator,staking,stargate,cosmwasm_1_1 --target thumbv7em-none-eabi
282285
- run:
283286
name: Build library for native target (all features)
284287
working_directory: ~/project/packages/std

packages/std/src/ibc.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ use serde::{Deserialize, Serialize};
99
use crate::addresses::Addr;
1010
use crate::binary::Binary;
1111
use crate::coin::Coin;
12+
#[cfg(feature = "std")]
1213
use crate::errors::StdResult;
1314
use crate::results::{Attribute, CosmosMsg, Empty, Event, SubMsg};
1415
#[cfg(feature = "std")]

0 commit comments

Comments
 (0)