Skip to content

Commit

Permalink
chore: Extract Cargo edition to [workspace.package]
Browse files Browse the repository at this point in the history
  • Loading branch information
relrelb committed Oct 14, 2022
1 parent 183b8ad commit 178bf4f
Show file tree
Hide file tree
Showing 20 changed files with 28 additions and 29 deletions.
4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
4 changes: 2 additions & 2 deletions core/build_playerglobal/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "build_playerglobal"
version = "0.1.0"
edition = "2021"
edition.workspace = true

[dependencies]
convert_case = "0.6.0"
Expand All @@ -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 changes: 1 addition & 1 deletion core/macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 2 additions & 3 deletions desktop/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -43,4 +42,4 @@ render_debug_labels = ["ruffle_render_wgpu/render_debug_labels"]
render_trace = ["ruffle_render_wgpu/render_trace"]

# sandboxing
sandbox = []
sandbox = []
2 changes: 1 addition & 1 deletion exporter/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion render/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion render/canvas/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion render/webgl/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion render/wgpu/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion scanner/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion swf/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 2 additions & 4 deletions tests/input-format/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
4 changes: 2 additions & 2 deletions video/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -12,4 +12,4 @@ generational-arena = "0.2.8"
thiserror = "1.0"

[features]
default = []
default = []
4 changes: 2 additions & 2 deletions video/software/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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 changes: 1 addition & 1 deletion web/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion web/common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
4 changes: 2 additions & 2 deletions web/packages/extension/safari/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
2 changes: 1 addition & 1 deletion wstr/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"

Expand Down

0 comments on commit 178bf4f

Please sign in to comment.