Skip to content

Commit

Permalink
Merge pull request #178 from jamesmunns/james/merge-in-postcard-dyn
Browse files Browse the repository at this point in the history
Merge in postcard dyn

This merges in the history of https://github.com/jamesmunns/postcard-dyn.

Welcome to the family
  • Loading branch information
jamesmunns authored Oct 27, 2024
2 parents 7a04eb4 + cd3d6e4 commit 7011177
Show file tree
Hide file tree
Showing 7 changed files with 1,291 additions and 5 deletions.
4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@
resolver = '2'
members = [
"source/postcard",
"source/postcard-derive", "source/postcard-schema",
"source/postcard-derive",
"source/postcard-dyn",
"source/postcard-schema",
]
13 changes: 9 additions & 4 deletions ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,19 @@ cargo_test() {

cargo_test --features=alloc,experimental-derive,use-std,use-crc,derive

cargo_check --target=thumbv7em-none-eabi --no-default-features
cargo_check --target=thumbv7em-none-eabi --features=alloc,experimental-derive
# NOTE: we exclude postcard-dyn for these checks because it is std-only

cargo_check --target=thumbv7em-none-eabi --no-default-features --exclude postcard-dyn
cargo_check --target=thumbv7em-none-eabi --features=alloc,experimental-derive --exclude postcard-dyn

# CC https://github.com/jamesmunns/postcard/issues/167 - don't accidentally use atomics
# on non-atomic systems
cargo_check --target=riscv32i-unknown-none-elf --features=alloc,experimental-derive
cargo_check --target=riscv32i-unknown-none-elf --features=alloc,experimental-derive --exclude postcard-dyn

cargo fmt --all -- --check

# Check docs.rs build
env RUSTDOCFLAGS='--cfg=docsrs --deny=warnings' cargo +nightly doc --all --no-deps --all-features
#
# TODO: We SHOULDN'T exclude postcard-dyn but it does weird things with feature unification and
# makes the embedded-io stuff break
env RUSTDOCFLAGS='--cfg=docsrs --deny=warnings' cargo +nightly doc --all --no-deps --all-features --exclude postcard-dyn
1 change: 1 addition & 0 deletions source/postcard-dyn/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target
33 changes: 33 additions & 0 deletions source/postcard-dyn/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
[package]
name = "postcard-dyn"
version = "0.1.0"
authors = ["James Munns <[email protected]>"]
edition = "2021"
repository = "https://github.com/jamesmunns/postcard"
description = "Dynamic ser/de for postcard"
license = "MIT OR Apache-2.0"
categories = [
"embedded",
"no-std",
]
keywords = [
"serde",
"cobs",
"framing",
]
documentation = "https://docs.rs/postcard-dyn/"


[dependencies]
serde = { version = "1.0.202", features = ["derive"] }
serde_json = "1.0.117"

[dependencies.postcard]
version = "1.0.10"
features = ["use-std"]
path = "../postcard"

[dependencies.postcard-schema]
version = "0.1"
features = ["use-std", "derive"]
path = "../postcard-schema"
Loading

0 comments on commit 7011177

Please sign in to comment.