Skip to content

Commit 80f90c1

Browse files
committed
docs: update readme with new bitcode crate attribute
1 parent 281cf8d commit 80f90c1

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ aide = { version = "0.13", optional = true, default-features = false, features =
1818
axum = { version = "0.7", default-features = false }
1919
axum-codec-macros = { path = "macros", version = "0.0.8" }
2020
bincode = { version = "2.0.0-rc.3", default-features = false, features = ["std"], optional = true }
21+
# 0.6.3 added the #[bitcode(crate = "...")] option
2122
bitcode = { version = "0.6.3", default-features = false, features = ["std"], optional = true }
2223
ciborium = { version = "0.2", optional = true }
2324
mime = "0.3"

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ use axum_codec::{
4040
// serde::Serialize, serde::Deserialize,
4141
// bincode::Encode, bincode::Decode,
4242
// bitcode::Encode, bitcode::Decode,
43+
// validator::Validate,
4344
// )]
4445
// #[serde(crate = "...")]
4546
// #[bincode(crate = "...")]
46-
//
47-
// NOTE: `validator` does not support `#[validator(crate = "...)]` yet,
48-
// so the dependency must be specified in your `Cargo.toml` if enabled (and using this macro).
47+
// #[bitcode(crate = "...")]
48+
// #[validator(crate = "...")]
4949
#[axum_codec::apply(encode, decode)]
5050
struct User {
5151
name: String,

0 commit comments

Comments
 (0)