From e8786299f2a53c24e82c6d9e82b109933c11eabd Mon Sep 17 00:00:00 2001 From: tanglearncode Date: Thu, 17 Sep 2026 01:13:23 +0800 Subject: [PATCH 1/3] Remove custom test profile settings --- Cargo.toml | 7 ------- README.md | 15 +++------------ 2 files changed, 3 insertions(+), 19 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 3ca4172..bf17e8b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -36,13 +36,6 @@ test = true name = "environment" test = true -[profile.test] -opt-level = 0 -debug = true -lto = false -codegen-units = 1 -incremental = false - [lints.rust] unsafe_op_in_unsafe_fn = "deny" diff --git a/README.md b/README.md index 7fb4a81..595aaf7 100644 --- a/README.md +++ b/README.md @@ -78,18 +78,9 @@ Add shimforge as a dev dependency: shimforge = "0.1" ``` -Keep your production code as it is, and add these settings to the workspace root -`Cargo.toml`. They reduce inlining so that calls still reach a patchable entry -point: - -```toml -[profile.test] -opt-level = 0 -debug = true -lto = false -codegen-units = 1 -incremental = false -``` +Keep your production code as it is. No custom test profile is needed with Cargo's +defaults. Use unoptimized tests: optimized builds can inline calls that shimforge +cannot intercept. Even unoptimized builds may inline some calls. Import the two macros and the session type, then run `cargo test` as usual: From cabbd52523823b65609a80d0019fe1e1e80029a2 Mon Sep 17 00:00:00 2001 From: tanglearncode Date: Thu, 17 Sep 2026 01:23:08 +0800 Subject: [PATCH 2/3] Remove README inlining caveat --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 595aaf7..215fe71 100644 --- a/README.md +++ b/README.md @@ -79,8 +79,7 @@ shimforge = "0.1" ``` Keep your production code as it is. No custom test profile is needed with Cargo's -defaults. Use unoptimized tests: optimized builds can inline calls that shimforge -cannot intercept. Even unoptimized builds may inline some calls. +defaults. Import the two macros and the session type, then run `cargo test` as usual: From 565f5c890c1fd52f33a897d962ade3cdf94e4123 Mon Sep 17 00:00:00 2001 From: tanglearncode Date: Thu, 17 Sep 2026 03:13:59 +0800 Subject: [PATCH 3/3] Remove test profile paragraph from README --- README.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/README.md b/README.md index 215fe71..61dbf6a 100644 --- a/README.md +++ b/README.md @@ -78,9 +78,6 @@ Add shimforge as a dev dependency: shimforge = "0.1" ``` -Keep your production code as it is. No custom test profile is needed with Cargo's -defaults. - Import the two macros and the session type, then run `cargo test` as usual: ```rust