Skip to content

Commit 278df33

Browse files
authored
Merge pull request #27376 from mseri/rust
Add rust 2024 edition
2 parents d34e9d5 + 988b7a8 commit 278df33

File tree

1 file changed

+43
-0
lines changed
  • packages/conf-rust-2024/conf-rust-2024.1

1 file changed

+43
-0
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
opam-version: "2.0"
2+
maintainer: "[email protected]"
3+
authors: [
4+
"TriliTech"
5+
"Simon Cruanes"
6+
]
7+
homepage: "https://github.com/ocaml/opam-repository"
8+
bug-reports: "https://github.com/ocaml/opam-repository/issues"
9+
license: "MIT"
10+
build: [
11+
["cargo" "--version"]
12+
["rustc" "--edition" "2024" "test.rs"]
13+
]
14+
depexts: [
15+
["cargo"] {os-distribution = "centos" & os-version >= "8"}
16+
["cargo"] {os-distribution = "ol" & os-version >= "8"}
17+
["cargo"] {os-distribution = "fedora"}
18+
["cargo"] {os-family = "suse" | os-family = "opensuse"}
19+
["cargo"] {os-family = "debian"}
20+
["cargo"] {os-family = "ubuntu"}
21+
["cargo" "rustc"] {os-distribution = "nixos"}
22+
["cargo"] {os-family = "alpine"}
23+
["rust"] {os-family = "arch"}
24+
["rust"] {os = "macos" & os-distribution = "homebrew"}
25+
["rust"] {os = "freebsd"}
26+
]
27+
x-ci-accept-failures: [
28+
"centos-7" # does not have cargo by default
29+
"oraclelinux-7" # does not have cargo by default
30+
"debian-10" # rust 2021 is not in the default repository (version is too old)
31+
"debian-11" # rust 2021 is not in the default repository (version is too old)
32+
"alpine-3.14" # ships with version where rust 2021 is not stable
33+
]
34+
synopsis: "Virtual package relying on cargo (rust build system)"
35+
description:
36+
"This package can only install if cargo (edition=2021) is installed on the system."
37+
flags: conf
38+
extra-source "test.rs" {
39+
src:
40+
"https://raw.githubusercontent.com/ocaml/opam-source-archives/main/patches/conf-rust-2021/test.rs"
41+
checksum:
42+
"sha256=536e506bb90914c243a12b397b9a998f85ae2cbd9ba02dfd03a9e155ca5ca0f4"
43+
}

0 commit comments

Comments
 (0)