Skip to content

Commit

Permalink
chore: optimize cargo workspace settings
Browse files Browse the repository at this point in the history
- move global settings, `edition`, `version` to the root `Cargo.toml`.
- add the dir `/examples` as workspace members, and add `multi-plugin` as cargo example target.
- move examples profile settings to root `Cargo.toml` (because the profile settings only work in the root `Cargo.toml`)
- set the members of workspace to inherit settings from the root `Cargo.toml`.
- update `Cargo.lock` (because of examples deps).
- remove `examples/Cargo.lock` (of course, `examples` now is a member of workspace, so it can not have lock file).
- reformat all the Cargo file with taplo.
  • Loading branch information
ulic-youthlic committed Feb 5, 2025
1 parent 5fa8980 commit 1263d7e
Show file tree
Hide file tree
Showing 8 changed files with 491 additions and 2,971 deletions.
443 changes: 435 additions & 8 deletions Cargo.lock

Large diffs are not rendered by default.

17 changes: 15 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@
[workspace]
resolver = "2"
members = ["mania", "mania-macros"]
members = ["mania", "mania-macros", "examples"]

[workspace.package]
version = "0.0.1"
edition = "2021"
license-file = "LICENCE"

[workspace.dependencies]
md-5 = "0.10.6"
hex = "0.4.3"
hex = "0.4.3"

[profile.release]
opt-level = 2
debug = false
lto = true
incremental = false
codegen-units = 1
strip = true
Loading

0 comments on commit 1263d7e

Please sign in to comment.