From 55615e8f8e05976826cf6b14b097c73394dd01f4 Mon Sep 17 00:00:00 2001 From: Mingun Date: Tue, 16 Sep 2025 21:15:49 +0500 Subject: [PATCH] Fix instructions for testing contributions Since separation of serde_core from serde, all doctests lives in serde_core project, which also does not have the `derive` feature. Following the old instructions does not run any tests. --- CONTRIBUTING.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 20d7f4c0b..f63646b6e 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -27,11 +27,11 @@ pull request with your changes. If anything does not pass, typically it will be easier to iterate and fix it locally than waiting for the CI servers to run tests for you. -##### In the [`serde`] directory +##### In the [`serde_core`] directory ```sh # Test all the example code in Serde documentation -cargo test --features derive +cargo test ``` ##### In the [`test_suite`] directory @@ -43,7 +43,7 @@ cargo +nightly test --features unstable Note that this test suite currently only supports running on a nightly compiler. -[`serde`]: https://github.com/serde-rs/serde/tree/master/serde +[`serde_core`]: https://github.com/serde-rs/serde/tree/master/serde_core [`test_suite`]: https://github.com/serde-rs/serde/tree/master/test_suite ## Conduct