Update to Rust edition 2021 and minimum supported Rust version 1.56

Also update CI image to use meson 0.60.
This commit is contained in:
Sebastian Dröge 2021-10-30 14:31:45 +03:00
parent 0a5100ca9b
commit c00a97f5ec
46 changed files with 91 additions and 91 deletions

View file

@ -1,4 +1,4 @@
variables:
GST_RS_IMG_TAG: '2021-10-22.1'
GST_RS_IMG_TAG: '2021-10-31.0'
GST_RS_STABLE: '1.56.0'
GST_RS_MSRV: '1.54.0'
GST_RS_MSRV: '1.56.0'

View file

@ -1,6 +1,6 @@
set -e
pip3 install meson==0.59.2
pip3 install meson==0.60.0
# gstreamer-rs already has a 'gstreamer' directory so don't clone there
pushd .

View file

@ -3,8 +3,8 @@ name = "examples"
version = "0.18.0"
license = "MIT"
authors = ["Sebastian Dröge <sebastian@centricular.com>"]
edition = "2018"
rust-version = "1.54"
edition = "2021"
rust-version = "1.56"
[dependencies]
glib = { git = "https://github.com/gtk-rs/gtk-rs-core" }

View file

@ -10,8 +10,8 @@ readme = "README.md"
homepage = "https://gstreamer.freedesktop.org"
documentation = "https://gstreamer.pages.freedesktop.org/gstreamer-rs/stable/latest/docs/gstreamer_app/"
keywords = ["gstreamer", "multimedia", "audio", "video", "gnome"]
edition = "2018"
rust-version = "1.54"
edition = "2021"
rust-version = "1.56"
[dependencies]
futures-core = "0.3"

View file

@ -45,8 +45,8 @@ name = "gstreamer-app-sys"
readme = "README.md"
repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs"
version = "0.18.0"
edition = "2018"
rust-version = "1.54"
edition = "2021"
rust-version = "1.56"
[package.metadata.docs.rs]
features = ["dox"]
[package.metadata.system-deps.gstreamer_app_1_0]

View file

@ -10,8 +10,8 @@ readme = "README.md"
homepage = "https://gstreamer.freedesktop.org"
documentation = "https://gstreamer.pages.freedesktop.org/gstreamer-rs/stable/latest/docs/gstreamer_audio/"
keywords = ["gstreamer", "multimedia", "audio", "video", "gnome"]
edition = "2018"
rust-version = "1.54"
edition = "2021"
rust-version = "1.56"
[dependencies]
libc = "0.2"

View file

@ -48,8 +48,8 @@ name = "gstreamer-audio-sys"
readme = "README.md"
repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs"
version = "0.18.0"
edition = "2018"
rust-version = "1.54"
edition = "2021"
rust-version = "1.56"
[package.metadata.docs.rs]
features = ["dox"]
[package.metadata.system-deps.gstreamer_audio_1_0]

View file

@ -10,8 +10,8 @@ readme = "README.md"
homepage = "https://gstreamer.freedesktop.org"
documentation = "https://gstreamer.pages.freedesktop.org/gstreamer-rs/stable/latest/docs/gstreamer_base/"
keywords = ["gstreamer", "multimedia", "audio", "video", "gnome"]
edition = "2018"
rust-version = "1.54"
edition = "2021"
rust-version = "1.56"
[dependencies]
cfg-if = "1.0"

View file

@ -49,8 +49,8 @@ name = "gstreamer-base-sys"
readme = "README.md"
repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs"
version = "0.18.0"
edition = "2018"
rust-version = "1.54"
edition = "2021"
rust-version = "1.56"
[package.metadata.docs.rs]
features = ["dox"]
[package.metadata.system-deps.gstreamer_base_1_0]

View file

@ -10,8 +10,8 @@ readme = "README.md"
homepage = "https://gstreamer.freedesktop.org"
documentation = "https://gstreamer.pages.freedesktop.org/gstreamer-rs/stable/latest/docs/gstreamer_check/"
keywords = ["gstreamer", "multimedia", "audio", "video", "gnome"]
edition = "2018"
rust-version = "1.54"
edition = "2021"
rust-version = "1.56"
[dependencies]
bitflags = "1.0"

View file

@ -45,8 +45,8 @@ name = "gstreamer-check-sys"
readme = "README.md"
repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs"
version = "0.18.0"
edition = "2018"
rust-version = "1.54"
edition = "2021"
rust-version = "1.56"
[package.metadata.docs.rs]
features = ["dox"]
[package.metadata.system-deps.gstreamer_check_1_0]

View file

@ -10,8 +10,8 @@ readme = "README.md"
homepage = "https://gstreamer.freedesktop.org"
documentation = "https://gstreamer.pages.freedesktop.org/gstreamer-rs/stable/latest/docs/gstreamer_controller/"
keywords = ["gstreamer", "multimedia", "audio", "video", "gnome"]
edition = "2018"
rust-version = "1.54"
edition = "2021"
rust-version = "1.56"
[dependencies]
bitflags = "1.0"

View file

@ -46,8 +46,8 @@ name = "gstreamer-controller-sys"
readme = "README.md"
repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs"
version = "0.18.0"
edition = "2018"
rust-version = "1.54"
edition = "2021"
rust-version = "1.56"
[package.metadata.docs.rs]
features = ["dox"]
[package.metadata.system-deps.gstreamer_controller_1_0]

View file

@ -10,8 +10,8 @@ readme = "README.md"
homepage = "https://gstreamer.freedesktop.org"
documentation = "https://gstreamer.pages.freedesktop.org/gstreamer-rs/stable/latest/docs/gstreamer_editing_services/"
keywords = ["gstreamer", "multimedia", "gnome", "nle"]
edition = "2018"
rust-version = "1.54"
edition = "2021"
rust-version = "1.56"
[dependencies]
libc = "0.2"

View file

@ -51,8 +51,8 @@ name = "gstreamer-editing-services-sys"
readme = "README.md"
repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs"
version = "0.18.0"
edition = "2018"
rust-version = "1.54"
edition = "2021"
rust-version = "1.56"
[package.metadata.docs.rs]
features = ["dox"]
[package.metadata.system-deps.gst_editing_services_1_0]

View file

@ -13,8 +13,8 @@ readme = "README.md"
homepage = "https://gstreamer.freedesktop.org"
documentation = "https://gstreamer.pages.freedesktop.org/gstreamer-rs/stable/latest/docs/gstreamer_gl/"
keywords = ["gstreamer", "multimedia", "audio", "video", "gnome"]
edition = "2018"
rust-version = "1.54"
edition = "2021"
rust-version = "1.56"
[dependencies]
bitflags = "1.0"

View file

@ -13,8 +13,8 @@ readme = "README.md"
homepage = "https://gstreamer.freedesktop.org"
documentation = "https://gstreamer.pages.freedesktop.org/gstreamer-rs/stable/latest/docs/gstreamer_gl_egl/"
keywords = ["gstreamer", "multimedia", "audio", "video", "gnome"]
edition = "2018"
rust-version = "1.54"
edition = "2021"
rust-version = "1.56"
[dependencies]
libc = "0.2"

View file

@ -10,8 +10,8 @@ name = "gstreamer-gl-egl-sys"
readme = "README.md"
repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs"
version = "0.18.0"
edition = "2018"
rust-version = "1.54"
edition = "2021"
rust-version = "1.56"
[package.metadata.system-deps.gstreamer_gl_egl_1_0]
name = "gstreamer-gl-1.0"
version = "1.14"

View file

@ -47,8 +47,8 @@ name = "gstreamer-gl-sys"
readme = "README.md"
repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs"
version = "0.18.0"
edition = "2018"
rust-version = "1.54"
edition = "2021"
rust-version = "1.56"
[package.metadata.docs.rs]
features = ["dox"]
[package.metadata.system-deps.gstreamer_gl_1_0]

View file

@ -13,8 +13,8 @@ readme = "README.md"
homepage = "https://gstreamer.freedesktop.org"
documentation = "https://gstreamer.pages.freedesktop.org/gstreamer-rs/stable/latest/docs/gstreamer_gl_wayland/"
keywords = ["gstreamer", "multimedia", "audio", "video", "gnome"]
edition = "2018"
rust-version = "1.54"
edition = "2021"
rust-version = "1.56"
[dependencies]
libc = "0.2"

View file

@ -10,8 +10,8 @@ name = "gstreamer-gl-wayland-sys"
readme = "README.md"
repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs"
version = "0.18.0"
edition = "2018"
rust-version = "1.54"
edition = "2021"
rust-version = "1.56"
[package.metadata.system-deps.gstreamer_gl_wayland_1_0]
name = "gstreamer-gl-1.0"
version = "1.14"

View file

@ -13,8 +13,8 @@ readme = "README.md"
homepage = "https://gstreamer.freedesktop.org"
documentation = "https://gstreamer.pages.freedesktop.org/gstreamer-rs/stable/latest/docs/gstreamer_gl_x11/"
keywords = ["gstreamer", "multimedia", "audio", "video", "gnome"]
edition = "2018"
rust-version = "1.54"
edition = "2021"
rust-version = "1.56"
[dependencies]
libc = "0.2"

View file

@ -10,8 +10,8 @@ name = "gstreamer-gl-x11-sys"
readme = "README.md"
repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs"
version = "0.18.0"
edition = "2018"
rust-version = "1.54"
edition = "2021"
rust-version = "1.56"
[package.metadata.system-deps.gstreamer_gl_x11_1_0]
name = "gstreamer-gl-1.0"
version = "1.14"

View file

@ -45,8 +45,8 @@ name = "gstreamer-mpegts-sys"
readme = "README.md"
repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs"
version = "0.18.0"
edition = "2018"
rust-version = "1.54"
edition = "2021"
rust-version = "1.56"
[package.metadata.docs.rs]
features = ["dox"]
[package.metadata.system-deps.gstreamer_mpegts_1_0]

View file

@ -10,8 +10,8 @@ readme = "README.md"
homepage = "https://gstreamer.freedesktop.org"
documentation = "https://gstreamer.pages.freedesktop.org/gstreamer-rs/stable/latest/docs/gstreamer_net/"
keywords = ["gstreamer", "multimedia", "audio", "video", "gnome"]
edition = "2018"
rust-version = "1.54"
edition = "2021"
rust-version = "1.56"
[dependencies]
ffi = { package = "gstreamer-net-sys", path = "sys", features = ["v1_8"] }

View file

@ -45,8 +45,8 @@ name = "gstreamer-net-sys"
readme = "README.md"
repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs"
version = "0.18.0"
edition = "2018"
rust-version = "1.54"
edition = "2021"
rust-version = "1.56"
[package.metadata.docs.rs]
features = ["dox"]
[package.metadata.system-deps.gstreamer_net_1_0]

View file

@ -10,8 +10,8 @@ readme = "README.md"
homepage = "https://gstreamer.freedesktop.org"
documentation = "https://gstreamer.pages.freedesktop.org/gstreamer-rs/stable/latest/docs/gstreamer_pbutils/"
keywords = ["gstreamer", "multimedia", "audio", "pbutils", "gnome"]
edition = "2018"
rust-version = "1.54"
edition = "2021"
rust-version = "1.56"
[dependencies]
bitflags = "1.0"

View file

@ -52,8 +52,8 @@ name = "gstreamer-pbutils-sys"
readme = "README.md"
repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs"
version = "0.18.0"
edition = "2018"
rust-version = "1.54"
edition = "2021"
rust-version = "1.56"
[package.metadata.docs.rs]
features = ["dox"]
[package.metadata.system-deps.gstreamer_pbutils_1_0]

View file

@ -10,8 +10,8 @@ readme = "README.md"
homepage = "https://gstreamer.freedesktop.org"
documentation = "https://gstreamer.pages.freedesktop.org/gstreamer-rs/stable/latest/docs/gstreamer_player/"
keywords = ["gstreamer", "multimedia", "audio", "video", "gnome"]
edition = "2018"
rust-version = "1.54"
edition = "2021"
rust-version = "1.56"
[dependencies]
bitflags = "1.0"

View file

@ -44,8 +44,8 @@ name = "gstreamer-player-sys"
readme = "README.md"
repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs"
version = "0.18.0"
edition = "2018"
rust-version = "1.54"
edition = "2021"
rust-version = "1.56"
[package.metadata.docs.rs]
features = ["dox"]
[package.metadata.system-deps.gstreamer_player_1_0]

View file

@ -10,8 +10,8 @@ readme = "README.md"
homepage = "https://gstreamer.freedesktop.org"
documentation = "https://gstreamer.pages.freedesktop.org/gstreamer-rs/stable/latest/docs/gstreamer_rtp/"
keywords = ["gstreamer", "multimedia", "audio", "video", "gnome"]
edition = "2018"
rust-version = "1.54"
edition = "2021"
rust-version = "1.56"
[dependencies]
bitflags = "1.0"

View file

@ -47,8 +47,8 @@ name = "gstreamer-rtp-sys"
readme = "README.md"
repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs"
version = "0.18.0"
edition = "2018"
rust-version = "1.54"
edition = "2021"
rust-version = "1.56"
[package.metadata.docs.rs]
features = ["dox"]
[package.metadata.system-deps.gstreamer_rtp_1_0]

View file

@ -10,8 +10,8 @@ readme = "README.md"
homepage = "https://gstreamer.freedesktop.org"
documentation = "https://gstreamer.pages.freedesktop.org/gstreamer-rs/stable/latest/docs/gstreamer_rtsp_server/"
keywords = ["gstreamer", "multimedia", "audio", "video", "gnome"]
edition = "2018"
rust-version = "1.54"
edition = "2021"
rust-version = "1.56"
[dependencies]
bitflags = "1.0"

View file

@ -57,8 +57,8 @@ name = "gstreamer-rtsp-server-sys"
readme = "README.md"
repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs"
version = "0.18.0"
edition = "2018"
rust-version = "1.54"
edition = "2021"
rust-version = "1.56"
[package.metadata.docs.rs]
features = ["dox"]
[package.metadata.system-deps.gstreamer_rtsp_server_1_0]

View file

@ -10,8 +10,8 @@ readme = "README.md"
homepage = "https://gstreamer.freedesktop.org"
documentation = "https://gstreamer.pages.freedesktop.org/gstreamer-rs/stable/latest/docs/gstreamer_rtsp/"
keywords = ["gstreamer", "multimedia", "audio", "video", "gnome"]
edition = "2018"
rust-version = "1.54"
edition = "2021"
rust-version = "1.56"
[dependencies]
bitflags = "1.0"

View file

@ -52,8 +52,8 @@ name = "gstreamer-rtsp-sys"
readme = "README.md"
repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs"
version = "0.18.0"
edition = "2018"
rust-version = "1.54"
edition = "2021"
rust-version = "1.56"
[package.metadata.docs.rs]
features = ["dox"]
[package.metadata.system-deps.gstreamer_rtsp_1_0]

View file

@ -10,8 +10,8 @@ readme = "README.md"
homepage = "https://gstreamer.freedesktop.org"
documentation = "https://gstreamer.pages.freedesktop.org/gstreamer-rs/stable/latest/docs/gstreamer_sdp/"
keywords = ["gstreamer", "multimedia", "audio", "video", "gnome"]
edition = "2018"
rust-version = "1.54"
edition = "2021"
rust-version = "1.56"
[dependencies]
ffi = { package = "gstreamer-sdp-sys", path = "sys", features = ["v1_8"] }

View file

@ -43,8 +43,8 @@ name = "gstreamer-sdp-sys"
readme = "README.md"
repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs"
version = "0.18.0"
edition = "2018"
rust-version = "1.54"
edition = "2021"
rust-version = "1.56"
[package.metadata.docs.rs]
features = ["dox"]
[package.metadata.system-deps.gstreamer_sdp_1_0]

View file

@ -45,8 +45,8 @@ name = "gstreamer-tag-sys"
readme = "README.md"
repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs"
version = "0.18.0"
edition = "2018"
rust-version = "1.54"
edition = "2021"
rust-version = "1.56"
[package.metadata.docs.rs]
features = ["dox"]
[package.metadata.system-deps.gstreamer_tag_1_0]

View file

@ -10,8 +10,8 @@ readme = "README.md"
homepage = "https://gstreamer.freedesktop.org"
documentation = "https://gstreamer.pages.freedesktop.org/gstreamer-rs/stable/latest/docs/gstreamer_video/"
keywords = ["gstreamer", "multimedia", "audio", "video", "gnome"]
edition = "2018"
rust-version = "1.54"
edition = "2021"
rust-version = "1.56"
[dependencies]
bitflags = "1.0"

View file

@ -50,8 +50,8 @@ name = "gstreamer-video-sys"
readme = "README.md"
repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs"
version = "0.18.0"
edition = "2018"
rust-version = "1.54"
edition = "2021"
rust-version = "1.56"
[package.metadata.docs.rs]
features = ["dox"]
[package.metadata.system-deps.gstreamer_video_1_0]

View file

@ -10,8 +10,8 @@ readme = "README.md"
homepage = "https://gstreamer.freedesktop.org"
documentation = "https://gstreamer.pages.freedesktop.org/gstreamer-rs/stable/latest/docs/gstreamer_webrtc/"
keywords = ["gstreamer", "multimedia", "audio", "video", "gnome"]
edition = "2018"
rust-version = "1.54"
edition = "2021"
rust-version = "1.56"
[dependencies]
libc = "0.2"

View file

@ -37,8 +37,8 @@ name = "gstreamer-webrtc-sys"
readme = "README.md"
repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs"
version = "0.18.0"
edition = "2018"
rust-version = "1.54"
edition = "2021"
rust-version = "1.56"
[package.metadata.docs.rs]
features = ["dox"]
[package.metadata.system-deps.gstreamer_webrtc_1_0]

View file

@ -10,8 +10,8 @@ readme = "README.md"
homepage = "https://gstreamer.freedesktop.org"
documentation = "https://gstreamer.pages.freedesktop.org/gstreamer-rs/stable/latest/docs/gstreamer/"
keywords = ["gstreamer", "multimedia", "audio", "video", "gnome"]
edition = "2018"
rust-version = "1.54"
edition = "2021"
rust-version = "1.56"
[dependencies]
bitflags = "1.0"

View file

@ -46,8 +46,8 @@ name = "gstreamer-sys"
readme = "README.md"
repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs"
version = "0.18.0"
edition = "2018"
rust-version = "1.54"
edition = "2021"
rust-version = "1.56"
[package.metadata.docs.rs]
features = ["dox"]
[package.metadata.system-deps.gstreamer_1_0]

View file

@ -3,8 +3,8 @@ name = "tutorials"
version = "0.18.0"
license = "MIT"
authors = ["Sebastian Dröge <sebastian@centricular.com>"]
edition = "2018"
rust-version = "1.54"
edition = "2021"
rust-version = "1.56"
[dependencies]
glib = { git = "https://github.com/gtk-rs/gtk-rs-core" }