Skip to content

Arrange repo into a Cargo workspace#7

Merged
gtrepta merged 10 commits into
masterfrom
workspace
Feb 19, 2026
Merged

Arrange repo into a Cargo workspace#7
gtrepta merged 10 commits into
masterfrom
workspace

Conversation

@gtrepta
Copy link
Copy Markdown
Contributor

@gtrepta gtrepta commented Feb 19, 2026

This makes the root of the repository a cargo workspace instead of a package. This helps to make managing multiple crates easier.

The kframework package that was in the root is moved to "kframework_core", where we can keep a standalone library of K functionality (parsing, data structures, matching, rewriting, etc.)

@gtrepta gtrepta requested a review from tothtamas28 February 19, 2026 04:11
Comment thread Makefile Outdated
Comment thread examples/fuzzer/Cargo.toml Outdated
Comment thread Makefile Outdated
.PHONY: check-clippy
check-clippy:
cargo clippy -- --deny warnings
cargo clippy --tests -- --deny warnings
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't this already check everything

cargo clippy -- --deny warnings

does?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That isn't what I observe. Adding a syntax error somewhere under kframework/tests doesn't get caught by it, but with --tests, it does.

Copy link
Copy Markdown
Collaborator

@tothtamas28 tothtamas28 Feb 19, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mean

cargo clippy --tests -- --deny warnings

might check strictly more than

cargo clippy -- --deny warnings

in which case you can drop the command without the --tests.

Copy link
Copy Markdown
Contributor Author

@gtrepta gtrepta Feb 19, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, sorry. Hm, I'm not sure. A quick search revealed --all-targets, which gets touted as best practice for CI pipelines. So, I've changed it to that.

@gtrepta gtrepta merged commit 40bf8ac into master Feb 19, 2026
2 checks passed
@gtrepta gtrepta deleted the workspace branch February 19, 2026 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants