Skip to content

Commit

Permalink
Merge pull request #27376 from mseri/rust
Browse files Browse the repository at this point in the history
Add rust 2024 edition
  • Loading branch information
mseri authored Feb 5, 2025
2 parents d34e9d5 + 988b7a8 commit 278df33
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions packages/conf-rust-2024/conf-rust-2024.1/opam
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
opam-version: "2.0"
maintainer: "[email protected]"
authors: [
"TriliTech"
"Simon Cruanes"
]
homepage: "https://github.com/ocaml/opam-repository"
bug-reports: "https://github.com/ocaml/opam-repository/issues"
license: "MIT"
build: [
["cargo" "--version"]
["rustc" "--edition" "2024" "test.rs"]
]
depexts: [
["cargo"] {os-distribution = "centos" & os-version >= "8"}
["cargo"] {os-distribution = "ol" & os-version >= "8"}
["cargo"] {os-distribution = "fedora"}
["cargo"] {os-family = "suse" | os-family = "opensuse"}
["cargo"] {os-family = "debian"}
["cargo"] {os-family = "ubuntu"}
["cargo" "rustc"] {os-distribution = "nixos"}
["cargo"] {os-family = "alpine"}
["rust"] {os-family = "arch"}
["rust"] {os = "macos" & os-distribution = "homebrew"}
["rust"] {os = "freebsd"}
]
x-ci-accept-failures: [
"centos-7" # does not have cargo by default
"oraclelinux-7" # does not have cargo by default
"debian-10" # rust 2021 is not in the default repository (version is too old)
"debian-11" # rust 2021 is not in the default repository (version is too old)
"alpine-3.14" # ships with version where rust 2021 is not stable
]
synopsis: "Virtual package relying on cargo (rust build system)"
description:
"This package can only install if cargo (edition=2021) is installed on the system."
flags: conf
extra-source "test.rs" {
src:
"https://raw.githubusercontent.com/ocaml/opam-source-archives/main/patches/conf-rust-2021/test.rs"
checksum:
"sha256=536e506bb90914c243a12b397b9a998f85ae2cbd9ba02dfd03a9e155ca5ca0f4"
}

0 comments on commit 278df33

Please sign in to comment.