chore: Extract Cargo `edition` to `[workspace.package]`
This is possible since Rust 1.64.0: https://blog.rust-lang.org/2022/09/22/Rust-1.64.0.html#cargo-improvements-workspace-inheritance-and-multi-target-builds
This commit is contained in:
parent
183b8adbf0
commit
178bf4fe24
|
@ -24,6 +24,9 @@ members = [
|
|||
]
|
||||
resolver = "2"
|
||||
|
||||
[workspace.package]
|
||||
edition = "2021"
|
||||
|
||||
# Don't optimize build scripts and macros.
|
||||
[profile.release.build-override]
|
||||
opt-level = 0
|
||||
|
@ -49,7 +52,6 @@ opt-level = 3
|
|||
[profile.dev.package.nihav_duck]
|
||||
opt-level = 3
|
||||
|
||||
|
||||
# TODO: Set rustflags here instead of in web/core/package.json, when that
|
||||
# feature becomes stable. See: https://github.com/rust-lang/cargo/issues/10271
|
||||
# Until then, these custom profiles let cargo keep the build cache alive
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
name = "ruffle_core"
|
||||
version = "0.1.0"
|
||||
authors = ["Ruffle LLC <ruffle@ruffle.rs>"]
|
||||
edition = "2021"
|
||||
edition.workspace = true
|
||||
license = "MIT OR Apache-2.0"
|
||||
|
||||
[dependencies]
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
[package]
|
||||
name = "build_playerglobal"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
edition.workspace = true
|
||||
|
||||
[dependencies]
|
||||
convert_case = "0.6.0"
|
||||
|
@ -11,4 +11,4 @@ swf = { path = "../../swf" }
|
|||
clap = {version = "4.0.12", features = ["derive"]}
|
||||
serde = {version = "1.0.145", features = ["derive"]}
|
||||
serde-xml-rs = "0.6.0"
|
||||
colored = "2.0.0"
|
||||
colored = "2.0.0"
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
name = "ruffle_macros"
|
||||
version = "0.1.0"
|
||||
authors = ["Ruffle LLC <ruffle@ruffle.rs>"]
|
||||
edition = "2021"
|
||||
edition.workspace = true
|
||||
|
||||
[lib]
|
||||
proc-macro = true
|
||||
|
|
|
@ -2,8 +2,7 @@
|
|||
name = "ruffle_desktop"
|
||||
version = "0.1.0"
|
||||
authors = ["Ruffle LLC <ruffle@ruffle.rs>"]
|
||||
edition = "2021"
|
||||
default-run = "ruffle_desktop"
|
||||
edition.workspace = true
|
||||
license = "MIT OR Apache-2.0"
|
||||
|
||||
[dependencies]
|
||||
|
@ -43,4 +42,4 @@ render_debug_labels = ["ruffle_render_wgpu/render_debug_labels"]
|
|||
render_trace = ["ruffle_render_wgpu/render_trace"]
|
||||
|
||||
# sandboxing
|
||||
sandbox = []
|
||||
sandbox = []
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
name = "exporter"
|
||||
version = "0.1.0"
|
||||
authors = ["Nathan Adams <dinnerbone@dinnerbone.com>"]
|
||||
edition = "2021"
|
||||
edition.workspace = true
|
||||
license = "MIT OR Apache-2.0"
|
||||
|
||||
[dependencies]
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
name = "ruffle_render"
|
||||
version = "0.1.0"
|
||||
authors = ["Ruffle LLC <ruffle@ruffle.rs>"]
|
||||
edition = "2021"
|
||||
edition.workspace = true
|
||||
license = "MIT OR Apache-2.0"
|
||||
|
||||
[dependencies]
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
name = "ruffle_render_canvas"
|
||||
version = "0.1.0"
|
||||
authors = ["Ruffle LLC <ruffle@ruffle.rs>"]
|
||||
edition = "2021"
|
||||
edition.workspace = true
|
||||
license = "MIT OR Apache-2.0"
|
||||
|
||||
[dependencies]
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
name = "ruffle_render_webgl"
|
||||
version = "0.1.0"
|
||||
authors = ["Ruffle LLC <ruffle@ruffle.rs>"]
|
||||
edition = "2021"
|
||||
edition.workspace = true
|
||||
license = "MIT OR Apache-2.0"
|
||||
|
||||
[dependencies]
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
name = "ruffle_render_wgpu"
|
||||
version = "0.1.0"
|
||||
authors = ["Nathan Adams <dinnerbone@dinnerbone.com>"]
|
||||
edition = "2021"
|
||||
edition.workspace = true
|
||||
license = "MIT OR Apache-2.0"
|
||||
|
||||
[dependencies]
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
name = "ruffle_scanner"
|
||||
version = "0.1.0"
|
||||
authors = ["Nathan Adams <dinnerbone@dinnerbone.com>"]
|
||||
edition = "2021"
|
||||
edition.workspace = true
|
||||
license = "MIT OR Apache-2.0"
|
||||
|
||||
[dependencies]
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
[package]
|
||||
name = "swf"
|
||||
version = "0.2.0"
|
||||
edition = "2021"
|
||||
edition.workspace = true
|
||||
authors = ["Ruffle LLC <ruffle@ruffle.rs>"]
|
||||
repository = "https://github.com/ruffle-rs/ruffle"
|
||||
homepage = "https://github.com/ruffle-rs/ruffle"
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
name = "tests"
|
||||
version = "0.1.0"
|
||||
authors = ["Aaron Hill <aa1ronham@gmail.com>"]
|
||||
edition = "2021"
|
||||
edition.workspace = true
|
||||
|
||||
[dependencies]
|
||||
futures = "0.3.24"
|
||||
|
|
|
@ -1,11 +1,9 @@
|
|||
[package]
|
||||
name = "ruffle_input_format"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
edition.workspace = true
|
||||
|
||||
[dependencies]
|
||||
serde = { version = "1.0.145", features = ["derive"] }
|
||||
serde_json = "1.0.86"
|
||||
bitflags = "1.3.2"
|
||||
bitflags = "1.3.2"
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
name = "ruffle_video"
|
||||
version = "0.1.0"
|
||||
authors = ["Ruffle LLC <ruffle@ruffle.rs>"]
|
||||
edition = "2021"
|
||||
edition.workspace = true
|
||||
license = "MIT OR Apache-2.0"
|
||||
|
||||
[dependencies]
|
||||
|
@ -12,4 +12,4 @@ generational-arena = "0.2.8"
|
|||
thiserror = "1.0"
|
||||
|
||||
[features]
|
||||
default = []
|
||||
default = []
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
name = "ruffle_video_software"
|
||||
version = "0.1.0"
|
||||
authors = ["Ruffle LLC <ruffle@ruffle.rs>"]
|
||||
edition = "2021"
|
||||
edition.workspace = true
|
||||
license = "MIT OR Apache-2.0"
|
||||
|
||||
[dependencies]
|
||||
|
@ -24,4 +24,4 @@ nihav_duck = { git = "https://github.com/ruffle-rs/nihav-vp6", rev = "9416fcc9fc
|
|||
default = ["h263", "vp6", "screenvideo"]
|
||||
h263 = ["h263-rs", "h263-rs-yuv"]
|
||||
vp6 = ["nihav_core", "nihav_codec_support", "nihav_duck", "h263-rs-yuv"]
|
||||
screenvideo = []
|
||||
screenvideo = []
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
name = "ruffle_web"
|
||||
version = "0.1.0"
|
||||
authors = ["Mike Welsh <mwelsh@gmail.com>"]
|
||||
edition = "2021"
|
||||
edition.workspace = true
|
||||
license = "MIT OR Apache-2.0"
|
||||
description = "Web (WASM) bindings to the Ruffle flash player"
|
||||
readme = "README.md"
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
name = "ruffle_web_common"
|
||||
version = "0.1.0"
|
||||
authors = ["Ruffle LLC <ruffle@ruffle.rs>"]
|
||||
edition = "2021"
|
||||
edition.workspace = true
|
||||
license = "MIT OR Apache-2.0"
|
||||
|
||||
[dependencies]
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
name = "ruffle_web_safari"
|
||||
version = "0.1.0"
|
||||
authors = ["Mike Welsh <mwelsh@gmail.com>"]
|
||||
edition = "2021"
|
||||
edition.workspace = true
|
||||
license = "MIT OR Apache-2.0"
|
||||
description = "Native binary for the Safari Web Extension"
|
||||
readme = "README.md"
|
||||
|
@ -11,4 +11,4 @@ repository = "https://github.com/ruffle-rs/ruffle/"
|
|||
publish = false # This crate is useless unless packaged into an appex bundle
|
||||
|
||||
[dependencies]
|
||||
objc = "0.2.7"
|
||||
objc = "0.2.7"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
[package]
|
||||
name = "ruffle_wstr"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
edition.workspace = true
|
||||
authors = ["Arthur Heuillard <arthur.heuillard<orange.fr>"]
|
||||
license = "MIT OR Apache-2.0"
|
||||
|
||||
|
|
Loading…
Reference in New Issue