Skip to content

Commit

Permalink
Update example project to 2021 edition
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Jun 20, 2023
1 parent b372f1f commit fc603fd
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion book/src/binding/cxxstring.md
Expand Up @@ -134,7 +134,7 @@ std::unique_ptr<json> load_config() {
std::in_place_type<json::object>,
std::initializer_list<std::pair<const std::string, json>>{
{"name", "cxx-example"},
{"edition", 2018.},
{"edition", 2021.},
{"repository", json::null}});
}
```
2 changes: 1 addition & 1 deletion book/src/build/cargo.md
Expand Up @@ -17,7 +17,7 @@ CXX's integration with Cargo is handled through the [cxx-build] crate.
...[package]
...name = "..."
...version = "..."
...edition = "2018"
...edition = "2021"
[dependencies]
cxx = "1.0"
Expand Down
4 changes: 2 additions & 2 deletions book/src/tutorial.md
Expand Up @@ -28,7 +28,7 @@ Edit the Cargo.toml to add a dependency on the `cxx` crate:
...[package]
...name = "cxx-demo"
...version = "0.1.0"
...edition = "2018"
...edition = "2021"
[dependencies]
cxx = "1.0"
Expand Down Expand Up @@ -182,7 +182,7 @@ Cargo.toml:
...[package]
...name = "cxx-demo"
...version = "0.1.0"
...edition = "2018"
...edition = "2021"
[dependencies]
cxx = "1.0"
Expand Down
2 changes: 1 addition & 1 deletion demo/BUCK
Expand Up @@ -3,7 +3,7 @@ load("//tools/buck:rust_cxx_bridge.bzl", "rust_cxx_bridge")
rust_binary(
name = "demo",
srcs = glob(["src/**/*.rs"]),
edition = "2018",
edition = "2021",
deps = [
":blobstore-sys",
":bridge",
Expand Down
2 changes: 1 addition & 1 deletion demo/BUILD
Expand Up @@ -5,7 +5,7 @@ load("//tools/bazel:rust_cxx_bridge.bzl", "rust_cxx_bridge")
rust_binary(
name = "demo",
srcs = glob(["src/**/*.rs"]),
edition = "2018",
edition = "2021",
deps = [
":blobstore-sys",
":bridge",
Expand Down
2 changes: 1 addition & 1 deletion demo/Cargo.toml
Expand Up @@ -3,7 +3,7 @@ name = "demo"
version = "0.0.0"
authors = ["David Tolnay <dtolnay@gmail.com>"]
description = "Toy project from https://github.com/dtolnay/cxx"
edition = "2018"
edition = "2021"
license = "MIT OR Apache-2.0"
publish = false
repository = "https://github.com/dtolnay/cxx"
Expand Down

0 comments on commit fc603fd

Please sign in to comment.