diff --git a/crates/loro-core/Cargo.toml b/crates/loro-core/Cargo.toml index 1544cbf0..bc5831da 100644 --- a/crates/loro-core/Cargo.toml +++ b/crates/loro-core/Cargo.toml @@ -20,3 +20,7 @@ thiserror = "1.0.31" [dev-dependencies] proptest = "1.0.0" proptest-derive = "0.3.0" + +# See https://matklad.github.io/2021/02/27/delete-cargo-integration-tests.html +[lib] +doctest = false diff --git a/crates/loro-core/src/dag.rs b/crates/loro-core/src/dag.rs index 69824118..250bf2c2 100644 --- a/crates/loro-core/src/dag.rs +++ b/crates/loro-core/src/dag.rs @@ -4,6 +4,7 @@ use std::{ }; use fxhash::FxHashMap; +#[cfg(test)] mod test; use crate::{ diff --git a/crates/loro-core/src/lib.rs b/crates/loro-core/src/lib.rs index b8c91195..102ae2a7 100644 --- a/crates/loro-core/src/lib.rs +++ b/crates/loro-core/src/lib.rs @@ -17,6 +17,7 @@ mod loro; mod smstring; mod snapshot; mod span; +#[cfg(test)] mod tests; mod value; diff --git a/crates/loro-framework/Cargo.toml b/crates/loro-framework/Cargo.toml index 507ff84c..487889e3 100644 --- a/crates/loro-framework/Cargo.toml +++ b/crates/loro-framework/Cargo.toml @@ -11,3 +11,6 @@ loro-core = {path = "../loro-core"} ring = "0.16.20" rle = {path = "../rle"} sha2 = "0.10.2" + +[lib] +doctest = false diff --git a/rust-toolchain b/rust-toolchain index bf867e0a..2bf5ad04 100644 --- a/rust-toolchain +++ b/rust-toolchain @@ -1 +1 @@ -nightly +stable