Skip to content

Commit 36f10c0

Browse files
committed
add rust-version attributes to cargo toml files
to better express/enforce our MSRV. according to the cargo documentation ([1]) this was only introduced in Rust version 1.56, but "older releases...will display a warning". as long as it's truly just a warning and not an error, i'm okay with that. [1]: https://doc.rust-lang.org/cargo/reference/manifest.html#the-rust-version-field
1 parent 283d429 commit 36f10c0

File tree

6 files changed

+6
-0
lines changed

6 files changed

+6
-0
lines changed

pulse-binding-mainloop-glib/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ keywords = ["binding", "pulseaudio", "glib", "audio"]
1010
homepage = "https://github.com/jnqnfe/pulse-binding-rust"
1111
repository = "https://github.com/jnqnfe/pulse-binding-rust"
1212
exclude = ["README.md"]
13+
rust-version = "1.56"
1314

1415
[dependencies]
1516
libpulse-binding = { path = "../pulse-binding", version = "2.25", default-features = false }

pulse-binding-simple/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ keywords = ["binding", "pulseaudio", "audio"]
1010
homepage = "https://github.com/jnqnfe/pulse-binding-rust"
1111
repository = "https://github.com/jnqnfe/pulse-binding-rust"
1212
exclude = ["README.md"]
13+
rust-version = "1.46"
1314

1415
[dependencies]
1516
libpulse-binding = { path = "../pulse-binding", version = "2.24", default-features = false }

pulse-binding/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ keywords = ["binding", "pulseaudio", "audio"]
1010
homepage = "https://github.com/jnqnfe/pulse-binding-rust"
1111
repository = "https://github.com/jnqnfe/pulse-binding-rust"
1212
exclude = ["README.md"]
13+
rust-version = "1.46"
1314

1415
[dependencies]
1516
libc = "0.2"

pulse-sys-mainloop-glib/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ repository = "https://github.com/jnqnfe/pulse-binding-rust"
1212
exclude = ["README.md"]
1313
links = "pulse-mainloop-glib"
1414
build = "build.rs"
15+
rust-version = "1.56"
1516

1617
[dependencies]
1718
libpulse-sys = { path = "../pulse-sys", version = "1.19", default-features = false }

pulse-sys-simple/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ repository = "https://github.com/jnqnfe/pulse-binding-rust"
1212
exclude = ["README.md"]
1313
links = "pulse-simple"
1414
build = "build.rs"
15+
rust-version = "1.46"
1516

1617
[dependencies]
1718
libpulse-sys = { path = "../pulse-sys", version = "1.19", default-features = false }

pulse-sys/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ repository = "https://github.com/jnqnfe/pulse-binding-rust"
1212
exclude = ["README.md"]
1313
links = "pulse"
1414
build = "build.rs"
15+
rust-version = "1.46"
1516

1617
[dependencies]
1718
libc = "0.2"

0 commit comments

Comments
 (0)