aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Tolnay <dtolnay@gmail.com>2022-10-21 09:14:16 -0700
committerDavid Tolnay <dtolnay@gmail.com>2022-10-21 09:18:48 -0700
commit152b89b08bf3ea92804518c1cf311a24e2849bd8 (patch)
tree3de32384015ec44b9680292049141a40747413e6 /src
parent8b7643b9335abfab5c7343e68036d10b447e35f9 (diff)
downloadcxx-152b89b08bf3ea92804518c1cf311a24e2849bd8.tar.gz
No-std fixes for Box, String, Pin, c_char
Diffstat (limited to 'src')
-rw-r--r--src/c_char.rs3
-rw-r--r--src/lib.rs1
2 files changed, 2 insertions, 2 deletions
diff --git a/src/c_char.rs b/src/c_char.rs
index a0d41803..333d8491 100644
--- a/src/c_char.rs
+++ b/src/c_char.rs
@@ -1,5 +1,4 @@
-#![cfg(feature = "alloc")]
-
+#[allow(missing_docs)]
pub type c_char = c_char_definition::c_char;
// Validate that our definition is consistent with libstd's definition, without
diff --git a/src/lib.rs b/src/lib.rs
index 360f7389..9ad6fe14 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -490,6 +490,7 @@ pub type Vector<T> = CxxVector<T>;
// Not public API.
#[doc(hidden)]
pub mod private {
+ pub use crate::c_char::c_char;
pub use crate::cxx_vector::VectorElement;
pub use crate::extern_type::{verify_extern_kind, verify_extern_type};
pub use crate::function::FatFunction;