-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27376 from mseri/rust
Add rust 2024 edition
- Loading branch information
Showing
1 changed file
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} |