Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ readme = "README.md"
capnp_conv = { path = "capnp_conv", version = "0.3.1" }
capnp_conv_macros = { path = "capnp_conv_macros", version = "0.3.1" }

capnp = "0.20"
capnp = { "version" = "0.20", default-features = false }
capnpc = "0.20"
heck = "0.5"
proc-macro2 = "1.0"
Expand Down
4 changes: 4 additions & 0 deletions capnp_conv/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,7 @@ readme.workspace = true
capnp_conv_macros.workspace = true

capnp.workspace = true

[features]
default = ["std"]
std = ["capnp/default"]
3 changes: 3 additions & 0 deletions capnp_conv/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#![cfg_attr(not(feature = "std"), no_std)]

use capnp::{traits::Owned, Result};
pub use capnp_conv_macros::capnp_conv;
use core::marker::Sized;

pub trait Writable {
type OwnedType: Owned;
Expand Down
2 changes: 1 addition & 1 deletion capnp_conv_macros/src/generators.rs
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ fn generate_try_from_impl(
let capnp_generics: Vec<Ident> = generics.iter().map(to_capnp_generic).collect();
quote! {
impl<'a, #(#generics, #capnp_generics),*>
::std::convert::TryFrom<#capnp_path::Reader<'a, #(#capnp_generics),*>>
::core::convert::TryFrom<#capnp_path::Reader<'a, #(#capnp_generics),*>>
for #rust_name<#(#generics),*>
where
#(#generics: ::capnp_conv::Readable<OwnedType = #capnp_generics>,)*
Expand Down