···
2
+
maintainer: "contact@trili.tech"
7
+
homepage: "https://github.com/ocaml/opam-repository"
8
+
bug-reports: "https://github.com/ocaml/opam-repository/issues"
11
+
["cargo" "--version"]
12
+
["rustc" "--edition" "2024" "test.rs"]
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"}
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
34
+
synopsis: "Virtual package relying on cargo (rust build system)"
36
+
"This package can only install if cargo (edition=2021) is installed on the system."
38
+
extra-source "test.rs" {
40
+
"https://raw.githubusercontent.com/ocaml/opam-source-archives/main/patches/conf-rust-2021/test.rs"
42
+
"sha256=536e506bb90914c243a12b397b9a998f85ae2cbd9ba02dfd03a9e155ca5ca0f4"