Skip to content

Commit 9004e2e

Browse files
committed
Added default-features = false to half dependency to fix no_std compatibility
1 parent 781fe50 commit 9004e2e

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99
### Fixed
1010

1111
- `canadensis_dsdl_frontend`: Fixed duplicate error text
12+
- `canadensis_codegen_rust`: Added default-features = false to half dependency in generated code to fix no_std
13+
compatibility
14+
- `canadensis_encoding`: Added default-features = false to half dependency to fix no_std compatibility
15+
- `canadensis_data_types`: Added default-features = false to half dependency to fix no_std compatibility
1216

1317
## [canadensis_bxcan-v0.3.0](https://github.com/samcrow/canadensis/releases/tag/canadensis_bxcan-v0.3.0) - 2023-03-30
1418

canadensis_codegen_rust/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ mod struct_as_enum;
3838
pub fn generated_code_dependencies() -> String {
3939
String::from(
4040
r#"[dependencies]
41-
half = { version = "2.2", features = ["zerocopy"] }
41+
half = { version = "2.2", default-features = false, features = ["zerocopy"] }
4242
heapless = "0.7.7"
4343
zerocopy = "0.6.0"
4444
canadensis_core = "0.3.0"

canadensis_data_types/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ description = "Automatically generated types for all Cyphal public regulated dat
1212
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1313

1414
[dependencies]
15-
half = { version = "2.2", features = ["zerocopy"] }
15+
half = { version = "2.2", default-features = false, features = ["zerocopy"] }
1616
heapless = "0.7.7"
1717
zerocopy = "0.6.0"
1818

canadensis_encoding/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ license = "MIT OR Apache-2.0"
1010
description = "A Cyphal implementation: Transfer encoding and decoding"
1111

1212
[dependencies]
13-
half = "2.2"
13+
half = { version = "2.2", default-features = false }
1414
zerocopy = "0.6.0"
1515

1616
[dev-dependencies]

0 commit comments

Comments
 (0)