Skip to content

Commit

Permalink
feat: Use Rust 2024 edition in the generated server SDK as well as in…
Browse files Browse the repository at this point in the history
… the starter project generated by 'pavex new'
  • Loading branch information
LukeMathWalker committed Feb 23, 2025
1 parent 065fd3c commit 305a62c
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion libs/pavexc/src/compiler/codegen/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ where
);
let manifest = GeneratedManifest {
dependencies,
edition: Edition::E2021,
edition: Edition::E2024,
};

// Toolchain crates are not listed as dependencies in the manifest, but we need to add them to
Expand Down
5 changes: 4 additions & 1 deletion libs/pavexc_cli/template/Cargo.toml.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@ members = ["app", "server_sdk", "server", "workspace_hack"]
# when executed from the root of the workspace.
# Otherwise, you would have to use `cargo run --bin server` to run the server binary.
default-members = ["server"]
resolver = "2"
resolver = "3"

[workspace.package]
edition = "2024"
2 changes: 1 addition & 1 deletion libs/pavexc_cli/template/app/Cargo.toml.liquid
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "app"
version = "0.1.0"
edition = "2021"
edition.workspace = true

[[bin]]
path = "src/bin/bp.rs"
Expand Down
2 changes: 1 addition & 1 deletion libs/pavexc_cli/template/server/Cargo.toml.liquid
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "server"
version = "0.1.0"
edition = "2021"
edition.workspace = true

[dependencies]
# Telemetry
Expand Down
2 changes: 1 addition & 1 deletion libs/pavexc_cli/template/server_sdk/Cargo.toml.liquid
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "server_sdk"
version = "0.1.0"
edition = "2021"
edition = "2024"

[package.metadata.px.generate]
generator_type = "cargo_workspace_binary"
Expand Down

0 comments on commit 305a62c

Please sign in to comment.