Skip to content

Commit ae546d9

Browse files
committed
build: correct workspace definition for workspace
1 parent a8976bc commit ae546d9

File tree

2 files changed

+26
-20
lines changed

2 files changed

+26
-20
lines changed

Cargo.toml

Lines changed: 25 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@
22
default-members = [
33
"ristretto_classfile",
44
"ristretto_classloader",
5+
"ristretto_cli",
6+
"ristretto_vm",
57
]
68
members = [
79
"examples/*",
810
"ristretto_classfile",
9-
"ristretto_classloader", "ristretto_cli",
11+
"ristretto_classloader",
12+
"ristretto_cli",
1013
"ristretto_vm",
1114
]
1215
resolver = "2"
@@ -50,36 +53,39 @@ shared-version = true
5053
dependent-version = "upgrade"
5154
tag-name = "v{{version}}"
5255

56+
[profile.release]
57+
codegen-units = 1
58+
lto = true
59+
opt-level = "z"
60+
panic = "abort"
61+
62+
# The profile that 'cargo dist' will build with
63+
[profile.dist]
64+
inherits = "release"
65+
lto = "thin"
66+
5367
# Config for 'cargo dist'
5468
[workspace.metadata.dist]
5569
# The preferred cargo-dist version to use in CI (Cargo.toml SemVer syntax)
5670
cargo-dist-version = "0.22.1"
5771
# CI backends to support
5872
ci = "github"
73+
# Path that installers should place binaries in
74+
install-path = "CARGO_HOME"
75+
# Whether to install an updater program
76+
install-updater = true
5977
# The installers to generate for each app
6078
installers = ["shell", "powershell", "homebrew", "msi"]
6179
# Post-announce jobs to run in CI
6280
post-announce-jobs = ["./release-post-announce"]
81+
# Which actions to run on pull requests
82+
pr-run-mode = "upload"
83+
# Publish jobs to run in CI
84+
publish-jobs = ["homebrew"]
6385
# A GitHub repo to push Homebrew formulas to
6486
tap = "theseus-rs/homebrew-tap"
6587
# Target platforms to build apps for (Rust target-triple syntax)
6688
targets = ["aarch64-apple-darwin", "x86_64-apple-darwin", "x86_64-unknown-linux-gnu", "x86_64-pc-windows-msvc"]
67-
# Path that installers should place binaries in
68-
install-path = "CARGO_HOME"
69-
# Publish jobs to run in CI
70-
publish-jobs = ["homebrew"]
71-
# Which actions to run on pull requests
72-
pr-run-mode = "upload"
73-
# Whether to install an updater program
74-
install-updater = true
7589

76-
[profile.release]
77-
codegen-units = 1
78-
lto = true
79-
opt-level = "z"
80-
panic = "abort"
81-
82-
# The profile that 'cargo dist' will build with
83-
[profile.dist]
84-
inherits = "release"
85-
lto = "thin"
90+
[workspace.metadata.dist.github-custom-runners]
91+
aarch64-apple-darwin = "macos-14"

ristretto_cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ eula = false
1919

2020
[[bin]]
2121
name = "java"
22-
path = "src/main.rs" # path to your main.rs or other binary file
22+
path = "src/main.rs"
2323

2424
[dependencies]
2525
clap = { workspace = true, features = ["derive"] }

0 commit comments

Comments
 (0)