Prepare 3.0.0-rc.1 and verify the locked Rust minimum
This commit is contained in:
1 parent
b702b31c76
commit
6e9b5af88d
7 files changed
+85
-62
No files matched your search
@@ -32,9 +32,16 @@ steps:
|
|||||||
- rustup target add x86_64-pc-windows-gnu
|
- rustup target add x86_64-pc-windows-gnu
|
||||||
- cargo check --workspace --all-targets --target x86_64-pc-windows-gnu
|
- cargo check --workspace --all-targets --target x86_64-pc-windows-gnu
|
||||||
|
|
||||||
|
minimum-rust:
|
||||||
|
image: rust:1.89-bookworm
|
||||||
|
commands:
|
||||||
|
- apt-get update
|
||||||
|
- apt-get install -y --no-install-recommends build-essential ca-certificates
|
||||||
|
- cargo check --locked --workspace --all-targets
|
||||||
|
|
||||||
build:
|
build:
|
||||||
image: rust:1.100-bookworm
|
image: rust:1.100-bookworm
|
||||||
depends_on: [test]
|
depends_on: [test, minimum-rust]
|
||||||
commands:
|
commands:
|
||||||
- apt-get update
|
- apt-get update
|
||||||
- apt-get install -y --no-install-recommends ca-certificates git openssl python3 build-essential
|
- apt-get install -y --no-install-recommends ca-certificates git openssl python3 build-essential
|
||||||
|
|||||||
+6
-1
@@ -10,7 +10,12 @@ Foreign wire v1, Provider manifest v2, lock v4) and independent package
|
|||||||
versions (including the bundled stdlib `0.1.0`) are versioned separately and
|
versions (including the bundled stdlib `0.1.0`) are versioned separately and
|
||||||
do not follow the product version. Dates use ISO 8601.
|
do not follow the product version. Dates use ISO 8601.
|
||||||
|
|
||||||
## Unreleased (post `3.0.0-beta.1`)
|
## 3.0.0-rc.1 (candidate)
|
||||||
|
|
||||||
|
- The Rust workspace, CLI version output and protocol producers report
|
||||||
|
`3.0.0-rc.1`. The locked workspace requires Rust 1.89.
|
||||||
|
- The candidate targets Linux x86_64 with glibc. See
|
||||||
|
[release gates](docs/releasing.md) for the evidence required for publication.
|
||||||
|
|
||||||
### Core/extension boundary — RFC-EXT-0003 (issue #3)
|
### Core/extension boundary — RFC-EXT-0003 (issue #3)
|
||||||
|
|
||||||
|
|||||||
Generated
+15
-15
@@ -412,7 +412,7 @@ checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "marqdo-cli"
|
name = "marqdo-cli"
|
||||||
version = "3.0.0-beta.1"
|
version = "3.0.0-rc.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"clap",
|
"clap",
|
||||||
"hex",
|
"hex",
|
||||||
@@ -438,7 +438,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "marqdo-expression"
|
name = "marqdo-expression"
|
||||||
version = "3.0.0-beta.1"
|
version = "3.0.0-rc.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"marqdo-span",
|
"marqdo-span",
|
||||||
"num-bigint",
|
"num-bigint",
|
||||||
@@ -449,7 +449,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "marqdo-foreign"
|
name = "marqdo-foreign"
|
||||||
version = "3.0.0-beta.1"
|
version = "3.0.0-rc.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"hex",
|
"hex",
|
||||||
"libc",
|
"libc",
|
||||||
@@ -465,7 +465,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "marqdo-frontend"
|
name = "marqdo-frontend"
|
||||||
version = "3.0.0-beta.1"
|
version = "3.0.0-rc.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"marqdo-expression",
|
"marqdo-expression",
|
||||||
"marqdo-ir",
|
"marqdo-ir",
|
||||||
@@ -480,7 +480,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "marqdo-host"
|
name = "marqdo-host"
|
||||||
version = "3.0.0-beta.1"
|
version = "3.0.0-rc.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"flate2",
|
"flate2",
|
||||||
"getrandom 0.4.3",
|
"getrandom 0.4.3",
|
||||||
@@ -504,7 +504,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "marqdo-ir"
|
name = "marqdo-ir"
|
||||||
version = "3.0.0-beta.1"
|
version = "3.0.0-rc.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"marqdo-expression",
|
"marqdo-expression",
|
||||||
"marqdo-span",
|
"marqdo-span",
|
||||||
@@ -514,7 +514,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "marqdo-markdown"
|
name = "marqdo-markdown"
|
||||||
version = "3.0.0-beta.1"
|
version = "3.0.0-rc.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"comrak",
|
"comrak",
|
||||||
"marqdo-span",
|
"marqdo-span",
|
||||||
@@ -525,7 +525,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "marqdo-package"
|
name = "marqdo-package"
|
||||||
version = "3.0.0-beta.1"
|
version = "3.0.0-rc.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"hex",
|
"hex",
|
||||||
"semver",
|
"semver",
|
||||||
@@ -539,7 +539,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "marqdo-plugin-abi"
|
name = "marqdo-plugin-abi"
|
||||||
version = "3.0.0-beta.1"
|
version = "3.0.0-rc.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"hex",
|
"hex",
|
||||||
"libloading",
|
"libloading",
|
||||||
@@ -554,7 +554,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "marqdo-plugin-sdk"
|
name = "marqdo-plugin-sdk"
|
||||||
version = "3.0.0-beta.1"
|
version = "3.0.0-rc.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"marqdo-plugin-abi",
|
"marqdo-plugin-abi",
|
||||||
"serde",
|
"serde",
|
||||||
@@ -563,7 +563,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "marqdo-provider-worker"
|
name = "marqdo-provider-worker"
|
||||||
version = "3.0.0-beta.1"
|
version = "3.0.0-rc.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"libloading",
|
"libloading",
|
||||||
"marqdo-host",
|
"marqdo-host",
|
||||||
@@ -575,7 +575,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "marqdo-runtime"
|
name = "marqdo-runtime"
|
||||||
version = "3.0.0-beta.1"
|
version = "3.0.0-rc.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"marqdo-expression",
|
"marqdo-expression",
|
||||||
"marqdo-frontend",
|
"marqdo-frontend",
|
||||||
@@ -594,7 +594,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "marqdo-sandbox"
|
name = "marqdo-sandbox"
|
||||||
version = "3.0.0-beta.1"
|
version = "3.0.0-rc.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"libc",
|
"libc",
|
||||||
"serde",
|
"serde",
|
||||||
@@ -602,14 +602,14 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "marqdo-span"
|
name = "marqdo-span"
|
||||||
version = "3.0.0-beta.1"
|
version = "3.0.0-rc.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"serde",
|
"serde",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "marqdo-value"
|
name = "marqdo-value"
|
||||||
version = "3.0.0-beta.1"
|
version = "3.0.0-rc.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"marqdo-span",
|
"marqdo-span",
|
||||||
"num-bigint",
|
"num-bigint",
|
||||||
|
|||||||
+2
-2
@@ -19,9 +19,9 @@ members = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
[workspace.package]
|
[workspace.package]
|
||||||
version = "3.0.0-beta.1"
|
version = "3.0.0-rc.1"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
rust-version = "1.82"
|
rust-version = "1.89"
|
||||||
license = "MIT OR Apache-2.0"
|
license = "MIT OR Apache-2.0"
|
||||||
repository = "https://github.com/cflmy/marqdo-cli"
|
repository = "https://github.com/cflmy/marqdo-cli"
|
||||||
authors = ["Marqdo contributors"]
|
authors = ["Marqdo contributors"]
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ The official implementation is a Rust workspace; Python/Node are optional
|
|||||||
foreign kernels, never the compiler target.
|
foreign kernels, never the compiler target.
|
||||||
|
|
||||||
This repository is the new, independent Marqdo toolchain, now at product
|
This repository is the new, independent Marqdo toolchain, now at product
|
||||||
version **`3.0.0-beta.1`**. It is **not** a compatibility rewrite of
|
version **`3.0.0-rc.1`** in this checkout. It is **not** a compatibility rewrite of
|
||||||
`cflmy/marqdo`; the old syntax, package format and plugin ABI v2 are not
|
`cflmy/marqdo`; the old syntax, package format and plugin ABI v2 are not
|
||||||
claimed to work here. See [docs/developers/](docs/developers/README.md) for the
|
claimed to work here. See [docs/developers/](docs/developers/README.md) for the
|
||||||
third-party entry point and `docs/MARQDO_3_0_PRERELEASE_PLAN.md` for the beta
|
third-party entry point and `docs/MARQDO_3_0_PRERELEASE_PLAN.md` for the beta
|
||||||
@@ -27,7 +27,7 @@ release policy.
|
|||||||
> [`docs/STATUS.md`](docs/STATUS.md) and
|
> [`docs/STATUS.md`](docs/STATUS.md) and
|
||||||
> [`docs/migration/README.md`](docs/migration/README.md).
|
> [`docs/migration/README.md`](docs/migration/README.md).
|
||||||
|
|
||||||
> **Status: `3.0.0-beta.1` prerelease** —
|
> **Published baseline: `3.0.0-beta.1` prerelease** —
|
||||||
> [release](https://git.cflmy.cn/cflmy/marqdo-cli/releases/tag/v3.0.0-beta.1),
|
> [release](https://git.cflmy.cn/cflmy/marqdo-cli/releases/tag/v3.0.0-beta.1),
|
||||||
> source `2c7c4f31e7a388d3fcfa717a77067e696ed13854`. The public beta target is **Linux x86_64 (glibc)**; macOS and Windows are experimental and not claimed, and the
|
> source `2c7c4f31e7a388d3fcfa717a77067e696ed13854`. The public beta target is **Linux x86_64 (glibc)**; macOS and Windows are experimental and not claimed, and the
|
||||||
> C ABI plugin/provider paths are Linux-only in this beta. The language
|
> C ABI plugin/provider paths are Linux-only in this beta. The language
|
||||||
@@ -53,7 +53,7 @@ mirror is not used as the authoritative lane for this beta.
|
|||||||
|
|
||||||
## Build
|
## Build
|
||||||
|
|
||||||
Requires Rust 1.82+.
|
Requires Rust 1.89 or newer for the locked workspace.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cargo build -p marqdo-cli
|
cargo build -p marqdo-cli
|
||||||
|
|||||||
@@ -436,30 +436,37 @@ fn tampered_path_dependency_content_is_rejected_by_locked_sync() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn incompatible_project_marqdo_range_fails_closed_before_program_load() {
|
fn project_marqdo_range_applies_to_the_running_core() {
|
||||||
let dir = TempDir::new("runtime-range");
|
let dir = TempDir::new("runtime-range");
|
||||||
let root = dir.path();
|
let root = dir.path();
|
||||||
write(
|
let core = env!("CARGO_PKG_VERSION");
|
||||||
&root.join("marqdo.yaml"),
|
|
||||||
"project:\n name: stale\n version: 0.1.0\n marqdo: \">=0.1,<1\"\n",
|
|
||||||
);
|
|
||||||
write(&root.join("index.mq.md"), "## @exec main\n\n`return 1`\n");
|
write(&root.join("index.mq.md"), "## @exec main\n\n`return 1`\n");
|
||||||
for command in [["check", "index.mq.md"], ["run", "index.mq.md"]] {
|
|
||||||
let output = cli(root, &command);
|
for (range, compatible) in [
|
||||||
assert!(
|
(">=3.0.0-beta.1,<4.0.0".to_string(), true),
|
||||||
!output.status.success(),
|
(format!("={core}"), true),
|
||||||
"{} must fail closed: {}",
|
(">=3.0.0,<4.0.0".to_string(), !core.contains('-')),
|
||||||
command[0],
|
(">=0.1,<1".to_string(), false),
|
||||||
String::from_utf8_lossy(&output.stderr)
|
] {
|
||||||
);
|
write(
|
||||||
let stderr = String::from_utf8_lossy(&output.stderr);
|
&root.join("marqdo.yaml"),
|
||||||
assert!(
|
&format!("project:\n name: runtime-range\n version: 0.1.0\n marqdo: \"{range}\"\n"),
|
||||||
stderr.contains("package.marqdo_incompatible"),
|
|
||||||
"unexpected stderr: {stderr}"
|
|
||||||
);
|
|
||||||
assert!(
|
|
||||||
stderr.contains(env!("CARGO_PKG_VERSION")),
|
|
||||||
"diagnostic must name the running core: {stderr}"
|
|
||||||
);
|
);
|
||||||
|
for command in ["check", "run"] {
|
||||||
|
let output = cli(root, &[command, "index.mq.md"]);
|
||||||
|
let stderr = String::from_utf8_lossy(&output.stderr);
|
||||||
|
assert_eq!(
|
||||||
|
output.status.success(),
|
||||||
|
compatible,
|
||||||
|
"{command}: {range} on {core}: {stderr}"
|
||||||
|
);
|
||||||
|
if !compatible {
|
||||||
|
assert!(stderr.contains("package.marqdo_incompatible"), "{stderr}");
|
||||||
|
assert!(
|
||||||
|
stderr.contains(core),
|
||||||
|
"diagnostic must name the running core: {stderr}"
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -451,35 +451,39 @@ fn a_root_record_json_in_the_source_package_is_rejected() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn beta_core_requires_an_explicit_prerelease_compatible_range() {
|
fn prerelease_core_requires_an_explicit_prerelease_compatible_range() {
|
||||||
let dir = TempDir::new("prerelease-range");
|
let dir = TempDir::new("prerelease-range");
|
||||||
let home = dir.path().join("home");
|
let home = dir.path().join("home");
|
||||||
let core = env!("CARGO_PKG_VERSION");
|
let core = env!("CARGO_PKG_VERSION");
|
||||||
|
|
||||||
// The shipped example range opt-in must install on this real core.
|
for (range, compatible) in [
|
||||||
let manifest = write_tool(dir.path(), "prerelease", "#!/bin/sh\nexit 0\n");
|
(">=3.0.0-beta.1,<4.0.0".to_string(), true),
|
||||||
let install = cli(&home, &["tool", "install", manifest.to_str().unwrap()]);
|
(format!("={core}"), true),
|
||||||
assert_eq!(install.status.code(), Some(0), "{}", stderr(&install));
|
(">=3.0.0,<4.0.0".to_string(), !core.contains('-')),
|
||||||
|
(">=0.1,<1".to_string(), false),
|
||||||
if core.contains('-') {
|
] {
|
||||||
// SemVer: a stable-only requirement must not silently accept a
|
let manifest = write_tool(dir.path(), "prerelease", "#!/bin/sh\nexit 0\n");
|
||||||
// prerelease core. The operator has to opt in with a prerelease range.
|
|
||||||
let manifest = write_tool(dir.path(), "stableonly", "#!/bin/sh\nexit 0\n");
|
|
||||||
let text = std::fs::read_to_string(&manifest)
|
let text = std::fs::read_to_string(&manifest)
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.replace(">=3.0.0-beta.1,<4.0.0", ">=3.0.0,<4.0.0");
|
.replace(">=3.0.0-beta.1,<4.0.0", &range);
|
||||||
std::fs::write(&manifest, text).unwrap();
|
std::fs::write(&manifest, text).unwrap();
|
||||||
let output = cli(&home, &["tool", "install", manifest.to_str().unwrap()]);
|
let output = cli(&home, &["tool", "install", manifest.to_str().unwrap()]);
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
output.status.code(),
|
output.status.success(),
|
||||||
Some(1),
|
compatible,
|
||||||
"a stable-only range must reject prerelease core {core}: {}",
|
"{range} on {core}: {}",
|
||||||
stderr(&output)
|
|
||||||
);
|
|
||||||
assert!(
|
|
||||||
stderr(&output).contains("requires marqdo"),
|
|
||||||
"{}",
|
|
||||||
stderr(&output)
|
stderr(&output)
|
||||||
);
|
);
|
||||||
|
if compatible {
|
||||||
|
assert!(cli(&home, &["tool", "remove", "prerelease"])
|
||||||
|
.status
|
||||||
|
.success());
|
||||||
|
} else {
|
||||||
|
assert!(
|
||||||
|
stderr(&output).contains("requires marqdo"),
|
||||||
|
"{}",
|
||||||
|
stderr(&output)
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user