Skip to content

Bump core for the embedded std (core#62) - #42

Merged
Kinflou merged 1 commit into
mainfrom
chore/bump-core-std
Oct 4, 2026
Merged

Kinflou merged 1 commit into
mainfrom
chore/bump-core-std

Conversation

@Kinflou

@Kinflou Kinflou commented Oct 4, 2026 •

Copy link
Copy Markdown
Member

Summary

Makes std usable from the CLI. With core#62, use std::… resolves against the standard library embedded in core:

  • comline check, build and generate merge in the std schemas a package imports (std::http, std::validators);
  • std imports are checked like any other: std has no schema matching 'std::htp::Request' - did you mean 'std::http'?;
  • the std schemas a package uses are generated alongside its own: generated/rust/std/http.rs.

Pins comline-core to 1ec7ad1 and moves the other crates with it, so the build keeps one comline-core:

  • comline-codegen: generation#32's first commit, the rev the generators pin;
  • comline-codegen-rust: comline-rust#20;
  • comline-codegen-typescript: comline-typescript#18.

Merge after (or together with) core#62, generation#32, comline-rust#20 and comline-typescript#18.

Test plan

  • New end-to-end test: a package using std::http types and the std::validators::StringBounds validator passes check with no warnings, and a std typo is rejected with its suggestion.
  • cargo test, cargo clippy --all-targets -- -D warnings and cargo fmt --check all clean.
  • Cargo.lock: regenerated by cargo. It changes the four pins and adds comline-core-stdlib from core's git source; comline-core resolves once.
  • On a demo package using std: build freezes 0.0.1, and generate writes api.rs, std/http.rs and std/validators.rs.

`use std::…` now resolves against the standard library embedded in core:
`comline check` / `build` / `generate` merge the std schemas a package
imports (`std::http`, `std::validators`), check std imports like any other,
and generate the std schemas used alongside the package's own.

Pins comline-core to 1ec7ad1, with comline-codegen, comline-codegen-rust
and comline-codegen-typescript moved together so the build keeps one
comline-core: generation#32's first commit (the rev the generators pin),
comline-rust#20 and comline-typescript#18.

Adds an end-to-end check test: a package using std types and the std
validator passes with no warnings, and a std typo is rejected with its
suggestion.
@Kinflou
Kinflou merged commit f171454 into main Oct 4, 2026
2 checks passed
@Kinflou
Kinflou deleted the chore/bump-core-std branch October 4, 2026 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant