docs: use README.md for crates lib.rs doc

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
Marc-André Lureau 2024-10-28 17:02:04 +04:00 committed by Benoît Cortier
parent 7bf699cdcd
commit bf56a7fc80
26 changed files with 38 additions and 7 deletions

View file

@ -1,3 +1,5 @@
#![doc = include_str!("../README.md")]
#[macro_use] #[macro_use]
extern crate tracing; extern crate tracing;

View file

@ -1,3 +1,5 @@
#![doc = include_str!("../README.md")]
use bitflags::bitflags; use bitflags::bitflags;
use ironrdp_dvc::DvcEncode; use ironrdp_dvc::DvcEncode;
use num_derive::{FromPrimitive, ToPrimitive}; use num_derive::{FromPrimitive, ToPrimitive};

View file

@ -1,3 +1,5 @@
#![doc = include_str!("../README.md")]
#[macro_use] #[macro_use]
extern crate tracing; extern crate tracing;

View file

@ -1,3 +1,5 @@
#![doc = include_str!("../README.md")]
#[macro_use] #[macro_use]
extern crate tracing; extern crate tracing;

View file

@ -1,3 +1,4 @@
#![doc = include_str!("../README.md")]
#![allow(unused_crate_dependencies)] // false positives because there is both a library and a binary #![allow(unused_crate_dependencies)] // false positives because there is both a library and a binary
// No need to be as strict as in production libraries // No need to be as strict as in production libraries

View file

@ -1,3 +1,5 @@
#![doc = include_str!("../README.md")]
#[macro_use] #[macro_use]
extern crate tracing; extern crate tracing;

View file

@ -1,5 +1,5 @@
#![cfg_attr(not(feature = "std"), no_std)]
#![doc = include_str!("../README.md")] #![doc = include_str!("../README.md")]
#![cfg_attr(not(feature = "std"), no_std)]
#![warn(clippy::std_instead_of_alloc)] #![warn(clippy::std_instead_of_alloc)]
#![warn(clippy::std_instead_of_core)] #![warn(clippy::std_instead_of_core)]
#![warn(missing_docs)] #![warn(missing_docs)]

View file

@ -1,3 +1,4 @@
#![doc = include_str!("../README.md")]
#![cfg_attr(not(feature = "std"), no_std)] #![cfg_attr(not(feature = "std"), no_std)]
#[macro_use] #[macro_use]

View file

@ -1,3 +1,4 @@
#![doc = include_str!("../README.md")]
#![cfg_attr(not(feature = "std"), no_std)] #![cfg_attr(not(feature = "std"), no_std)]
#[cfg(feature = "alloc")] #[cfg(feature = "alloc")]

View file

@ -1,3 +1,5 @@
#![doc = include_str!("../README.md")]
#[rustfmt::skip] // do not re-order this pub use #[rustfmt::skip] // do not re-order this pub use
pub use ironrdp_async::*; pub use ironrdp_async::*;

View file

@ -1,3 +1,5 @@
#![doc = include_str!("../README.md")]
#[macro_use] #[macro_use]
extern crate tracing; extern crate tracing;

View file

@ -1,3 +1,4 @@
#![doc = include_str!("../README.md")]
#![allow(clippy::arithmetic_side_effects)] // FIXME: remove #![allow(clippy::arithmetic_side_effects)] // FIXME: remove
#![allow(clippy::cast_lossless)] // FIXME: remove #![allow(clippy::cast_lossless)] // FIXME: remove
#![allow(clippy::cast_possible_truncation)] // FIXME: remove #![allow(clippy::cast_possible_truncation)] // FIXME: remove

View file

@ -1,3 +1,5 @@
#![doc = include_str!("../README.md")]
use bitvec::array::BitArray; use bitvec::array::BitArray;
use bitvec::BitArr; use bitvec::BitArr;
use ironrdp_pdu::input::fast_path::{FastPathInputEvent, KeyboardFlags}; use ironrdp_pdu::input::fast_path::{FastPathInputEvent, KeyboardFlags};

View file

@ -1,3 +1,4 @@
#![doc = include_str!("../README.md")]
// No need to be as strict as in production libraries // No need to be as strict as in production libraries
#![allow(clippy::arithmetic_side_effects)] #![allow(clippy::arithmetic_side_effects)]
#![allow(clippy::cast_lossless)] #![allow(clippy::cast_lossless)]

View file

@ -1,3 +1,4 @@
#![doc = include_str!("../README.md")]
#![allow(clippy::arithmetic_side_effects)] // FIXME: remove #![allow(clippy::arithmetic_side_effects)] // FIXME: remove
#![allow(clippy::cast_lossless)] // FIXME: remove #![allow(clippy::cast_lossless)] // FIXME: remove
#![allow(clippy::cast_possible_truncation)] // FIXME: remove #![allow(clippy::cast_possible_truncation)] // FIXME: remove

View file

@ -1,3 +1,5 @@
#![doc = include_str!("../README.md")]
use core::fmt; use core::fmt;
use der::asn1::OctetString; use der::asn1::OctetString;

View file

@ -1,3 +1,5 @@
#![doc = include_str!("../README.md")]
#[macro_use] #[macro_use]
extern crate tracing; extern crate tracing;

View file

@ -1,3 +1,5 @@
#![doc = include_str!("../README.md")]
pub mod client; pub mod client;
pub mod pdu; pub mod pdu;
pub mod server; pub mod server;

View file

@ -1,3 +1,4 @@
#![doc = include_str!("../README.md")]
#![allow(clippy::arithmetic_side_effects)] // TODO: should we enable this lint back? #![allow(clippy::arithmetic_side_effects)] // TODO: should we enable this lint back?
pub use tokio; pub use tokio;

View file

@ -1,3 +1,4 @@
#![doc = include_str!("../README.md")]
// No need to be as strict as in production libraries // No need to be as strict as in production libraries
#![allow(clippy::arithmetic_side_effects)] #![allow(clippy::arithmetic_side_effects)]
#![allow(clippy::cast_lossless)] #![allow(clippy::cast_lossless)]

View file

@ -1,3 +1,4 @@
#![doc = include_str!("../README.md")]
#![allow(clippy::arithmetic_side_effects)] // FIXME: remove #![allow(clippy::arithmetic_side_effects)] // FIXME: remove
#[macro_use] #[macro_use]

View file

@ -1,4 +1,5 @@
#![doc = include_str!("../README.md")] #![doc = include_str!("../README.md")]
// TODO: #![warn(missing_docs)] // TODO: #![warn(missing_docs)]
extern crate alloc; extern crate alloc;

View file

@ -1,3 +1,5 @@
#![doc = include_str!("../README.md")]
#[rustfmt::skip] // do not re-order this pub use #[rustfmt::skip] // do not re-order this pub use
pub use ironrdp_async::*; pub use ironrdp_async::*;

View file

@ -1,3 +1,4 @@
#![doc = include_str!("../README.md")]
#![allow(clippy::new_without_default)] // Default trait cant be used by wasm consumer anyway #![allow(clippy::new_without_default)] // Default trait cant be used by wasm consumer anyway
#![allow(unsafe_op_in_unsafe_fn)] // We cant control code generated by `wasm-bindgen` #![allow(unsafe_op_in_unsafe_fn)] // We cant control code generated by `wasm-bindgen`

View file

@ -1,6 +1,4 @@
//! Rust implementation of the Remote Desktop Protocol (RDP). #![doc = include_str!("../../../README.md")]
//!
//! This is a meta crate re-exporting other ironrdp crates for convenience.
#[cfg(feature = "acceptor")] #[cfg(feature = "acceptor")]
pub use ironrdp_acceptor as acceptor; pub use ironrdp_acceptor as acceptor;

View file

@ -1,6 +1,4 @@
//! This crate provides implementation of [NOW_PROTO] protocol. #![doc = include_str!("../README.md")]
//!
//! [NOW_PROTO]: ../../../docs/NOW-spec.md
#![cfg_attr(not(feature = "std"), no_std)] #![cfg_attr(not(feature = "std"), no_std)]
extern crate alloc; extern crate alloc;