Files
iroh/Cargo.toml
Floris Bruynooghe 5817271c4a ci: Update semver checks for 1.0 stability (#4401)
## Description

Now that 1.0 is stable we should run our semver checks against the
latest release, which is automatically found on crates.io. This also
means we can enable caching for it.

We do allow for adding deprecations, as per
https://semver.org/#how-should-i-handle-deprecating-functionality

## Breaking Changes

none

## Notes & open questions

- This matches the changes in noq:
https://github.com/n0-computer/noq/pull/734

- When there's a semver change that requires a new minor version the
  check will fail. We will have to increment the version number in the
  PR that requires this from now on.

- iroh-dns-server didn't have the workspace lints enabled. I assume this
was an
oversight so added them. They are needed to pick up the semver config
from
the workspace Cargo.toml (there are some alternatives, but we want those
lints).
So this also fixes a few of the new lints and clippy warnings coming
with that,
  luckily not much noise.

## Change checklist

- [x] Self-review.
- [x] This PR was created by a human that thought critically about the
      proposed change and wrote an as clear and concise description as
      they could.
- [x] This PR isn't slop, and is carefully crafted to do have the
      intented effect.
2026-07-13 16:40:01 +00:00

61 lines
2.1 KiB
TOML

[workspace]
members = [
"iroh-base",
"iroh-dns",
"iroh-dns-server",
"iroh",
"iroh/bench",
"iroh-relay",
]
resolver = "2"
[profile.release]
debug = true
[profile.dev-ci]
inherits = 'dev'
opt-level = 1
[profile.optimized-release]
inherits = 'release'
debug = false
lto = true
debug-assertions = false
opt-level = 3
panic = 'abort'
incremental = false
[workspace.lints.rust]
missing_debug_implementations = "warn"
# We use this --cfg for documenting the cargo features on which an API
# is available. To preview this locally use: RUSTDOCFLAGS="--cfg
# iroh_docsrs" cargo +nightly doc --all-features. We use our own
# iroh_docsrs instead of the common docsrs to avoid also enabling this
# feature in any dependencies, because some indirect dependencies
# require a feature enabled when using `--cfg docsrs` which we can not
# do. To enable for a crate set `#![cfg_attr(iroh_docsrs,
# feature(doc_cfg))]` in the crate.
# We also have our own `iroh_loom` cfg to enable tokio-rs/loom testing.
unexpected_cfgs = { level = "warn", check-cfg = ["cfg(iroh_docsrs)", "cfg(iroh_loom)", "cfg(skip_patchbay)"] }
[workspace.lints.clippy]
unused-async = "warn"
[workspace.metadata.cargo-semver-checks.lints]
enum_struct_variant_field_marked_deprecated = { required-update = "minor" }
enum_tuple_variant_field_marked_deprecated = { required-update = "minor" }
enum_variant_marked_deprecated = { required-update = "minor" }
function_marked_deprecated = { required-update = "minor" }
global_value_marked_deprecated = { required-update = "minor" }
macro_marked_deprecated = { required-update = "minor" }
proc_macro_marked_deprecated = { required-update = "minor" }
struct_field_marked_deprecated = { required-update = "minor" }
trait_associated_const_marked_deprecated = { required-update = "minor" }
trait_associated_type_marked_deprecated = { required-update = "minor" }
trait_marked_deprecated = { required-update = "minor" }
trait_method_marked_deprecated = { required-update = "minor" }
type_associated_const_marked_deprecated = { required-update = "minor" }
type_marked_deprecated = { required-update = "minor" }
type_method_marked_deprecated = { required-update = "minor" }