aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 2c448ae9..c2652b85 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -364,16 +364,22 @@
//! </table>
#![no_std]
-#![doc(html_root_url = "https://docs.rs/cxx/1.0.93")]
+#![doc(html_root_url = "https://docs.rs/cxx/1.0.119")]
+#![cfg_attr(doc_cfg, feature(doc_cfg))]
#![deny(
improper_ctypes,
improper_ctypes_definitions,
missing_docs,
unsafe_op_in_unsafe_fn
)]
-#![cfg_attr(doc_cfg, feature(doc_cfg))]
+#![warn(
+ clippy::alloc_instead_of_core,
+ clippy::std_instead_of_alloc,
+ clippy::std_instead_of_core
+)]
#![allow(non_camel_case_types)]
#![allow(
+ clippy::cast_possible_truncation,
clippy::cognitive_complexity,
clippy::declare_interior_mutable_const,
clippy::doc_markdown,
@@ -392,10 +398,11 @@
clippy::new_without_default,
clippy::or_fun_call,
clippy::ptr_arg,
+ clippy::ptr_as_ptr,
clippy::toplevel_ref_arg,
clippy::transmute_undefined_repr, // clippy bug: https://github.com/rust-lang/rust-clippy/issues/8417
+ clippy::uninlined_format_args,
clippy::useless_let_if_seq,
- clippy::wrong_self_convention
)]
#[cfg(built_with_cargo)]
@@ -469,6 +476,7 @@ mod weak_ptr;
pub use crate::cxx_vector::CxxVector;
#[cfg(feature = "alloc")]
+#[cfg_attr(doc_cfg, doc(cfg(feature = "alloc")))]
pub use crate::exception::Exception;
pub use crate::extern_type::{kind, ExternType};
pub use crate::shared_ptr::SharedPtr;
@@ -539,4 +547,4 @@ chars! {
}
#[repr(transparent)]
-struct void(core::ffi::c_void);
+struct void(#[allow(dead_code)] core::ffi::c_void);