-
Notifications
You must be signed in to change notification settings - Fork 0
Establish workspace with core, data, and cli crates #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
65a79bf
Establish workspace with core, data, and cli crates
leynos 390d2fe
Rename crates and centralise workspace config
leynos b56fb65
Pin CI actions and align docs with crate naming
leynos dd3ecfd
Harden workflow and refine docs
leynos c0cc77f
Refine toolchain setup and scaffold crates
leynos File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
| @@ -1,38 +1,34 @@ | ||
| name: CI | ||
|
|
||
| on: | ||
| pull_request: | ||
| branches: [main] | ||
| push: | ||
| branches: [main] | ||
| pull_request: | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| build-test: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: read | ||
| env: | ||
| CARGO_TERM_COLOR: always | ||
| BUILD_PROFILE: debug | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Setup Rust | ||
| uses: leynos/shared-actions/.github/actions/setup-rust@v1.1.0 | ||
| - name: Format | ||
| - uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4 | ||
| - uses: dtolnay/rust-toolchain@master | ||
| with: | ||
| toolchain: nightly-2025-06-26 | ||
| components: rustfmt, clippy, llvm-tools-preview | ||
| - uses: Swatinem/rust-cache@7939da402645ba29a2df566723491a2c856e8f8a # v2 | ||
| - name: Check formatting | ||
| run: make check-fmt | ||
| - name: Lint | ||
| run: make lint | ||
| - name: Test | ||
| run: make test | ||
| - name: Install cargo-tarpaulin | ||
| run: cargo install cargo-tarpaulin | ||
| - name: Run coverage | ||
| run: cargo tarpaulin --out lcov | ||
| - name: Upload coverage data to CodeScene | ||
| if: ${{ secrets.CS_ACCESS_TOKEN }} | ||
| uses: leynos/shared-actions/.github/actions/upload-codescene-coverage@v1.1.0 | ||
| with: | ||
| format: lcov | ||
| access-token: ${{ secrets.CS_ACCESS_TOKEN }} | ||
| installer-checksum: ${{ vars.CODESCENE_CLI_SHA256 }} | ||
|
|
||
| - name: Lint Markdown | ||
| run: make markdownlint | ||
| - name: Validate diagrams | ||
| run: make nixie | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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,10 @@ | ||
| [package] | ||
| name = "wildside-cli" | ||
| version = "0.1.0" | ||
| edition.workspace = true | ||
| publish = false | ||
| default-run = "wildside" | ||
|
|
||
| [[bin]] | ||
| name = "wildside" | ||
| path = "src/main.rs" |
This file contains hidden or 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,14 @@ | ||
| //! Entry point for the command-line interface. | ||
| #![forbid(unsafe_code)] | ||
|
|
||
| fn main() { | ||
| if let Err(err) = run() { | ||
| eprintln!("wildside: {err}"); | ||
| std::process::exit(1); | ||
| } | ||
| } | ||
|
|
||
| fn run() -> Result<(), Box<dyn std::error::Error>> { | ||
| // TODO: parse CLI arguments and dispatch commands. | ||
| Ok(()) | ||
| } |
This file contains hidden or 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,5 @@ | ||
| [package] | ||
| name = "wildside-core" | ||
| version = "0.1.0" | ||
| edition.workspace = true | ||
| publish = false |
This file contains hidden or 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 @@ | ||
| //! Core domain types for the Wildside engine. |
This file contains hidden or 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,5 @@ | ||
| [package] | ||
| name = "wildside-data" | ||
| version = "0.1.0" | ||
| edition.workspace = true | ||
| publish = false |
This file contains hidden or 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,14 @@ | ||
| //! Data access and ingestion logic for the Wildside engine. | ||
| //! | ||
| //! Responsibilities: | ||
| //! - Define repository and source traits for ingestion and query. | ||
| //! - Provide adapters for files, HTTP and databases. | ||
| //! - Encapsulate serialization formats and schema evolution. | ||
| //! | ||
| //! Boundaries: | ||
| //! - Do not encode domain rules (live in `wildside-core`). | ||
| //! - Keep blocking I/O off async executors; prefer async-capable clients. | ||
| //! | ||
| //! Invariants: | ||
| //! - Thread-safe by default where feasible. | ||
| //! - No global mutable state. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.