Skip to content
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

Web UI: First cut #197

Merged
merged 165 commits into from
Oct 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
165 commits
Select commit Hold shift + click to select a range
ab6f5ef
Add `peace_resource_model` crate skeleton.
azriel91 Jun 3, 2024
8de9cb0
Add `ResourceInteraction` type and sub data types.
azriel91 Jun 8, 2024
f8eee0a
Add `resource_interactions` function to `Item` trait.
azriel91 Jun 8, 2024
0d4584d
Minor changes to `outcome.md`.
azriel91 Jun 8, 2024
5473865
Add `resource_interaction` method to `ItemRt` trait and `ItemWrapper`.
azriel91 Jun 8, 2024
ef559c7
Extract common params resolution code.
azriel91 Jun 8, 2024
cadd188
Add `resource_locations` implementations for items.
azriel91 Jun 19, 2024
b1c1a35
Add tests for `resource_model` crate.
azriel91 Jun 24, 2024
c8d399b
Update `dot_ix` to `0.7.0`.
azriel91 Jul 1, 2024
61321a6
Move `resource_location` to `item_location`.
azriel91 Jul 2, 2024
c380ad3
Rename `ResourceLocation` to `ItemLocation`.
azriel91 Jul 2, 2024
6018687
Move `resource_interaction` to `item_interaction`.
azriel91 Jul 2, 2024
7abfa0f
Rename `ResourceInteraction` to `ItemInteraction`.
azriel91 Jul 2, 2024
3449e40
Move `resource_model` to `item_model`.
azriel91 Jul 2, 2024
f7d8a9e
Rename `resource_location` to `item_location`.
azriel91 Jul 2, 2024
b2bad1d
Rename `resource_interaction` to `item_interaction`.
azriel91 Jul 2, 2024
7f4604f
Rename `resource_model` to `item_model`.
azriel91 Jul 2, 2024
d379983
Run `cargo fmt --all`.
azriel91 Jul 2, 2024
bde4e1d
Add use cases to outcome diagram docs.
azriel91 Jul 3, 2024
e97a165
Add `ItemLocationTree`.
azriel91 Jul 5, 2024
6a61b1f
Add `ItemLocationAncestors`.
azriel91 Jul 5, 2024
682c301
Update items to return `ItemLocationAncestors`.
azriel91 Jul 5, 2024
dcaa4b3
Allow `Item::item_interactions` to return multiple interactions.
azriel91 Jul 9, 2024
86328e2
Add `cargo clippy_cli` alias.
azriel91 Jul 9, 2024
da57a92
Partially update examples to support `"item_interactions"`.
azriel91 Jul 14, 2024
bc1bfd5
Begin writing API design notes for `"item_interactions"`.
azriel91 Jul 14, 2024
b9f524d
Add `ItemLocation::path_lossy` for convenient usage.
azriel91 Aug 16, 2024
7e336f6
Expand on `api_design.md` with multiple items.
azriel91 Aug 23, 2024
70811c8
Add another option for rendering diagrams without known state / params.
azriel91 Aug 24, 2024
af1d970
Update documentation for `Item::apply_dry` about ambiguity.
azriel91 Aug 24, 2024
573fdf2
Add `Item::state_example` gated behind `"item_state_example"` feature.
azriel91 Aug 24, 2024
c4137b0
Add `item_interactions` and `state_example` implementations to all `I…
azriel91 Aug 25, 2024
b0910ac
Pass in `Item::Params` instead of `ParamsPartial` to `Item::item_inte…
azriel91 Aug 25, 2024
e9cd82d
Rename `Item::item_interactions` to `Item::interactions`.
azriel91 Aug 25, 2024
18918dc
Add `Example` data marker and `ValueResolutionMode`.
azriel91 Aug 26, 2024
ce91de8
Add `ItemRt::state_example` which calls through to `Item::state_examp…
azriel91 Aug 26, 2024
baf905d
Implement `ParamsMergeExt` for all `Params` types.
azriel91 Aug 31, 2024
0b9f817
Add `TODO:` indicating where channel receiver for item interactions s…
azriel91 Aug 31, 2024
2940148
Add shorthand for building `envman` in release mode.
azriel91 Aug 31, 2024
1b23bb4
Upgrade github actions' versions.
azriel91 Sep 1, 2024
5f42a53
Update dependency versions.
azriel91 Sep 1, 2024
5cdfeb6
Add `item_state_example` to `clippy_cli` shorthand.
azriel91 Sep 1, 2024
12f9fa3
Update `deny.toml` to work with `cargo-deny 2.0`.
azriel91 Sep 1, 2024
b5a2296
Update `peace_webi_components::flow_graph` for updated `dot_ix`.
azriel91 Sep 1, 2024
6a3cf37
Use `DotSvg` to render outcome graph.
azriel91 Sep 2, 2024
a80f090
Add missing lifetime to `id_newtype.rs`.
azriel91 Sep 6, 2024
f8e0581
Add `interaction_merging.md` docs.
azriel91 Sep 7, 2024
63e4200
Add `aesthetics_and_clarity.md` docs.
azriel91 Sep 8, 2024
a9241fc
Derive `PartialOrd, Ord` for `ItemLocation` and `ItemLocationType`.
azriel91 Sep 13, 2024
9a6e5fa
Add partial implementation of outcome diagram from `ItemInteraction`s.
azriel91 Sep 14, 2024
65fd5b3
Take in `ChildrenFn` in `WebiServer` and display in `Home`.
azriel91 Sep 20, 2024
8a8d62c
Swap parameter order in tests for `ItemLocation`.
azriel91 Sep 20, 2024
182872d
Allow `with_profile_from_workspace_param` to take in owned or ref `pr…
azriel91 Sep 20, 2024
dc51dfe
Allow `CmdCtxBuilder::with_flow` to take in owned or ref `flow`.
azriel91 Sep 20, 2024
9a54a7d
Remove `FlowSpecInfo::to_outcome_info_graph` test.
azriel91 Sep 20, 2024
2029141
Add incorrect implementation of `Flow::item_locations_and_interaction…
azriel91 Sep 21, 2024
a137e1d
Huge refactor to enable `WebiServer` to serve as an endpoint.
azriel91 Sep 21, 2024
818c1b5
Get `envman` compiling and serving a webpage.
azriel91 Sep 22, 2024
38b163b
Resolve hydration issue by not rendering different `Fragment`s depend…
azriel91 Sep 22, 2024
85d84d1
Pass through node names for each `ItemLocation`.
azriel91 Sep 24, 2024
22d6c20
Extract `node_id_to_item_locations_and_hierarchy` function.
azriel91 Sep 24, 2024
d9a65d1
Add edges and some theme styles to outcome diagram.
azriel91 Sep 26, 2024
3348d86
Ignore `RUSTSEC-2024-0370` in `audit.toml` and `deny.toml`.
azriel91 Sep 27, 2024
d31b048
Update `rustfmt.toml` to new format.
azriel91 Sep 27, 2024
f6acaa5
Update `dot_ix` to `0.8.1`.
azriel91 Sep 27, 2024
b8e88bc
Adjust `ItemInteractionPush` edge style.
azriel91 Sep 27, 2024
ecad43a
Set `edge_minlen_default` to `3`.
azriel91 Sep 27, 2024
18ceba5
Adjust `ItemInteractionPull` edge animation to be faster.
azriel91 Sep 27, 2024
473494c
Style groups and hosts lighter.
azriel91 Sep 27, 2024
ff4dadf
Add additional group layer for IAM resource types.
azriel91 Sep 27, 2024
b751a03
Calculate `NodeId` from `ItemLocation`'s ancestors.
azriel91 Sep 27, 2024
6e35f14
Correctly wait for resources in `flow_graph.rs` component.
azriel91 Sep 27, 2024
52b3419
Resolve `InMemory` param values based on `ValueResolutionCtx`.
azriel91 Sep 27, 2024
22d8b75
Insert `states_example` when constructing `CmdCtx`.
azriel91 Sep 27, 2024
773a3d5
Log serialized info graph to console for debugging.
azriel91 Sep 27, 2024
c1a0e69
Compute node ID for edge's `ItemLocationAncestors` instead of looking…
azriel91 Sep 28, 2024
7955617
Look up previously calculated node IDs in case additional ancestor se…
azriel91 Sep 28, 2024
a4934d9
Generate tags for example diagram.
azriel91 Sep 28, 2024
7c6d31c
Remove `Item` suffix from tag names.
azriel91 Sep 28, 2024
d2c0df5
Extract `ItemInteractionsStylingCtx` parameter object.
azriel91 Sep 28, 2024
250bce7
Associate edges and nodes of `ItenInteraction` with tags.
azriel91 Sep 28, 2024
2dfd909
Add `PackMode` so tags in example diagram are on the right.
azriel91 Sep 28, 2024
b0f83cc
Add `process_item_interaction_within_example` logic.
azriel91 Sep 28, 2024
fa5b020
Show edges in `current` `InfoGraph` based on `ProgressStatus`.
azriel91 Sep 29, 2024
c1a427e
Add `"output_progress"` feature to `peace_item_model` crate.
azriel91 Sep 30, 2024
925c2f6
Implement partially visible styles for current `InfoGraph`.
azriel91 Oct 1, 2024
7e47a07
Each tool provides its own `CmdExecReqT`.
azriel91 Oct 1, 2024
7c39bee
Use app provided web component for home element.
azriel91 Oct 1, 2024
5e7dcff
Try and set `cmd_execution_id` through signal.
azriel91 Oct 1, 2024
58da246
Got DiscoverCmd running, but not displaying.
azriel91 Oct 1, 2024
caaeccb
Add tabs and styling to buttons.
azriel91 Oct 2, 2024
31a91e0
Print when failing to send `cmd_execution_id_set` `WriteSignal`.
azriel91 Oct 2, 2024
445a50c
Read from `FlowOutcomeInfoGraphs<CmdExecutionId>` in `FlowGraphCurrent`.
azriel91 Oct 2, 2024
d4d0481
Use `server_fn`s to request for progress and outcome `InfoGraph`s.
azriel91 Oct 4, 2024
d32238e
Write to `Arc<Mutex<Option<CmdExecutionId>>>` instead of signal.
azriel91 Oct 4, 2024
43a428e
Only keep one `Sender` for `WebUiUpdate` so receiver would end.
azriel91 Oct 4, 2024
37eee68
No longer read signals in `FlowGraph` component initialization.
azriel91 Oct 4, 2024
160f7a9
Use `create_local_resource` in `FlowGraph` as `create_resource` doesn…
azriel91 Oct 4, 2024
7749c97
Actually render outcome graph realtime.
azriel91 Oct 4, 2024
89b6567
Remove some logging to reduce noise.
azriel91 Oct 4, 2024
ee237b8
Only replace `info_graph` if it is different.
azriel91 Oct 4, 2024
4d6cc57
Generate example outcome `InfoGraph` tags using insertion order.
azriel91 Oct 4, 2024
ffa1827
Run `EnsureCmd` when Deploy button is clicked.
azriel91 Oct 4, 2024
9a8469b
Partially fix node visibility based on item `ProgressStatus`.
azriel91 Oct 5, 2024
f2bc342
Add `ItemLocationState` type and `Item::State: RefInto<ItemLocationSt…
azriel91 Oct 5, 2024
0a13771
Add `peace_item_model::ItemLocationStateInProgress`.
azriel91 Oct 5, 2024
ec4a686
Gate `ItemLocationState` and `ItemLocationStateInProgress` behind `"o…
azriel91 Oct 5, 2024
15354f6
Change `peace_cmd_model` to depend on `peace_core` instead of `peace_…
azriel91 Oct 5, 2024
b1c1515
Add `CmdBlockItemInteractionType` and calculate `ItemLocationStateInP…
azriel91 Oct 6, 2024
d955e8c
Pass `CmdBlockItemInteractionType` through `CmdBlock`s to `Output`s.
azriel91 Oct 6, 2024
1e992ae
Implement `From<&'state S>` for `ItemLocationState` for all item states.
azriel91 Oct 6, 2024
2a9fc89
Move `CmdBlockItemInteractionType` into `peace_core::progress`.
azriel91 Oct 6, 2024
e803032
Implement `OutputWrite::cmd_block_start` for `InMemoryTextOutput`.
azriel91 Oct 6, 2024
cf47b35
Rename `FileDownloadState` to `FileDownloadStatePhysical`.
azriel91 Oct 6, 2024
1843e99
Add `FileDownloadState` newtype wrapper around `State<_, _>`.
azriel91 Oct 6, 2024
00c2a59
Wire through `ItemLocationState`s from `Progress` channel to `Outcome…
azriel91 Oct 6, 2024
4d39c99
Send `ItemLocationState` updates from `ItemWrapper`.
azriel91 Oct 6, 2024
716d671
Implement styles for nodes based on `ItemLocationStateInProgress`.
azriel91 Oct 6, 2024
1f61225
Improve styling slightly and reduce logging.
azriel91 Oct 6, 2024
d3c325a
Add `CleanCmd` button.
azriel91 Oct 6, 2024
b823d09
Add emojis to `ItemLocation` names.
azriel91 Oct 6, 2024
537baf3
Add styles to progress `InfoGraph`.
azriel91 Oct 8, 2024
61c4d42
Increase `WebUiUpdate` channel capacity to reduce dropped progress up…
azriel91 Oct 8, 2024
d21ad04
Reduce opacity of non-existent nodes.
azriel91 Oct 8, 2024
1e2be4f
Run `cargo fmt --all`.
azriel91 Oct 8, 2024
db32483
Address clippy lints.
azriel91 Oct 8, 2024
8b20ef0
Rename `ShCmdState` to `ShCmdStatePhysical`.
azriel91 Oct 8, 2024
b6dd4b6
Update `ShCmdState` to compile.
azriel91 Oct 8, 2024
064fb4a
Rename `ShCmdStatePhysical` to `ShCmdStateLogical`.
azriel91 Oct 8, 2024
72a9efb
Rename `FileDownloadStatePhysical` to `FileDownloadStateLogical`.
azriel91 Oct 8, 2024
e9b1de2
Address clippy lints.
azriel91 Oct 8, 2024
2cf1c1a
Update `progress_sender` test for renamed `ItemProgress` variant.
azriel91 Oct 8, 2024
45fed38
Rename `file_download_state_physical` to `file_download_state_logical`.
azriel91 Oct 9, 2024
9268de4
Change envman progress format to match outcome format.
azriel91 Oct 10, 2024
ce2a9c3
Add `OutputFormat::None` for `peace_cli` crate.
azriel91 Oct 10, 2024
55f00d5
Send both progress and outcome `InfoGraph`s in one web request.
azriel91 Oct 10, 2024
495d118
Only include the `last()` node from each `ItemLocationAncestors` to b…
azriel91 Oct 10, 2024
a342d55
Print execution error to console in `envman::main_cli`.
azriel91 Oct 10, 2024
edd2331
Don't sync `goal` states when deploying / cleaning, since we don't ye…
azriel91 Oct 10, 2024
a693f2a
Select most relevant `referrer_item_id` when calculating styles.
azriel91 Oct 10, 2024
532cc4d
Print `CmdOutcome` item errors in `main_cli`.
azriel91 Oct 10, 2024
2acddd4
Output example `InfoGraph` to console.
azriel91 Oct 10, 2024
6726a46
Use the innermost node as the edge source for an `ItemInteractionPush`.
azriel91 Oct 10, 2024
627449d
Assume S3 object does not exist when S3 bucket name / local file do n…
azriel91 Oct 10, 2024
3a74056
Add comments to explain when `Generated::Value` and `Generated::Tbd` …
azriel91 Oct 11, 2024
9ad4642
Update response edge for `ItemInteractionPull` to point to file.
azriel91 Oct 11, 2024
a2abccf
Highlight client file node in `ItemInteractionsPull` tag.
azriel91 Oct 11, 2024
d601942
Prefix tag IDs with `tag_`.
azriel91 Oct 11, 2024
849b314
Print tokio task trace in `s3_object_apply_fns.rs`.
azriel91 Oct 11, 2024
ff8bbe6
Revert "Print tokio task trace in `s3_object_apply_fns.rs`."
azriel91 Oct 11, 2024
1bebf0d
Update `process_item_interaction_{pull,push}_current` to use inner no…
azriel91 Oct 13, 2024
f19f3d5
Avoid diagram flicker when clicking buttons in web interface.
azriel91 Oct 18, 2024
28c6f70
Fix typos.
azriel91 Oct 19, 2024
779db0f
Build `envman` with `"item_interactions"` and `"item_state_example"` …
azriel91 Oct 19, 2024
287182e
Update `download` example to pass through features to `peace_items`.
azriel91 Oct 19, 2024
ddd8acb
Add `with_resource` to `CmdCtxBuilder`.
azriel91 Oct 19, 2024
6818c3c
Merge resources inserted after item setup.
azriel91 Oct 19, 2024
c3a0126
Fix `ShCmdItem` tests.
azriel91 Oct 19, 2024
b783382
Insert resources before building `CmdCtx` in `diff_cmd` tests.
azriel91 Oct 19, 2024
b216a82
Box a field of `ParamsSpecMismatch` to reduce enum variant size.
azriel91 Oct 19, 2024
f9d48e8
Address clippy lints.
azriel91 Oct 19, 2024
3a5fab1
Run `cargo fmt --all`.
azriel91 Oct 19, 2024
23e2cf9
Rework features so that `"item_interactions"` and `"item_state_exampl…
azriel91 Oct 19, 2024
9a2256e
Update `wasm-bindgen` version to `0.2.95`.
azriel91 Oct 19, 2024
16a4669
Fix heading for `State Diffs` in envman.
azriel91 Oct 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .cargo/audit.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[advisories]
ignore = [
# `proc-macro-error` is Unmaintained.
#
# Transitive dependency of `syn_derive`.
# Pending https://github.com/Kyuuhachi/syn_derive/issues/4.
"RUSTSEC-2024-0370",
]
38 changes: 38 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
[alias]
clippy_cli = [
"clippy",
"--workspace",
"--features",
"cli error_reporting output_progress item_interactions item_state_example",
"--fix",
"--exclude",
"peace_rt_model_web",
"--",
"-D",
"warnings",
]

# Nextest for different feature combinations
test_0 = ["nextest", "run", "--workspace", "--no-default-features"]
test_1 = ["nextest", "run", "--workspace", "--all-features"]
Expand All @@ -10,5 +23,30 @@ coverage_1 = ["llvm-cov", "--no-report", "nextest", "--workspace", "--all-featur
coverage_merge = 'llvm-cov report --lcov --output-path ./target/coverage/lcov.info'
coverage_open = 'llvm-cov report --open --output-dir ./target/coverage'

# Build envman example
# cargo leptos build --project "envman" --features "item_interactions item_state_example" --bin-features "cli" --release
envman_build_debug = [
"leptos",
"build",
"--project",
"envman",
"--features",
"item_interactions item_state_example",
"--bin-features",
"cli",
]

envman_build_release = [
"leptos",
"build",
"--project",
"envman",
"--features",
"item_interactions item_state_example",
"--bin-features",
"cli",
"--release",
]

[env]
CLICOLOR_FORCE = "1"
16 changes: 5 additions & 11 deletions .github/workflows/book.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,24 @@ jobs:
- name: 'Install `wasm-pack`'
uses: jetli/[email protected]
with:
version: 'v0.11.1'
version: 'v0.13.0'

- name: mdbook Cache
id: mdbook_cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cargo/bin/mdbook
key: ${{ runner.os }}-mdbook

- name: mdbook-graphviz Cache
id: mdbook_graphviz_cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cargo/bin/mdbook-graphviz
key: ${{ runner.os }}-mdbook-graphviz

- name: Setup Graphviz
uses: ts-graphviz/setup-graphviz@v1
uses: ts-graphviz/setup-graphviz@v2

- run: cargo install mdbook-graphviz
if: steps.mdbook_graphviz_cache.outputs.cache-hit != 'true'
Expand All @@ -56,12 +56,6 @@ jobs:
--features 'error_reporting'
done

# Build and publish book
# - name: Install `mdbook`
# uses: peaceiris/actions-mdbook@v1
# with:
# mdbook-version: latest

# use custom version of mdbook for now
- name: Install `mdbook`
run: cargo install mdbook --git https://github.com/azriel91/mdBook.git --branch improvement/code-blocks
Expand All @@ -77,7 +71,7 @@ jobs:

- name: Publish to `gh-pages`
if: ${{ github.ref == 'refs/heads/main' }}
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./doc/book
Expand Down
18 changes: 7 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: bp3d-actions/audit-check@9c23bd47e5e7b15b824739e0862cb878a52cc211
- uses: actions-rust-lang/audit@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -28,7 +28,7 @@ jobs:

- name: cargo-about cache
id: cargo-about-cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cargo/bin/cargo-about
key: cargo-about-${{ runner.os }}
Expand Down Expand Up @@ -83,12 +83,7 @@ jobs:
- name: 'Run clippy'
# we cannot use `--all-features` because `envman` has features that are mutually exclusive.
run: |
cargo clippy \
--workspace \
--features "cli error_reporting output_progress" \
--fix \
--exclude peace_rt_model_web \
-- -D warnings
cargo clippy_cli

# Ideally we'd also run it for WASM, but:
#
Expand Down Expand Up @@ -139,9 +134,10 @@ jobs:
run: du -sh target/coverage target/llvm-cov-target

- name: Upload to codecov.io
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
files: ./target/coverage/lcov.info
token: ${{ secrets.CODECOV_TOKEN }}

build_and_test_linux:
name: Build and Test (Linux)
Expand Down Expand Up @@ -203,7 +199,7 @@ jobs:

- name: cargo-leptos cache
id: cargo-leptos-cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cargo/bin/cargo-leptos
key: cargo-leptos-${{ runner.os }}
Expand All @@ -213,7 +209,7 @@ jobs:
run: cargo install --git https://github.com/leptos-rs/cargo-leptos.git --locked cargo-leptos

- name: 'Example: envman (leptos)'
run: cargo leptos build --project "envman" --bin-features "cli" -v
run: cargo envman_build_debug

# When updating this, also update book.yml
- name: 'Example: download (WASM)'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: bp3d-actions/audit-check@9c23bd47e5e7b15b824739e0862cb878a52cc211
- uses: actions-rust-lang/audit@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}

Expand Down Expand Up @@ -58,7 +58,7 @@ jobs:

- name: cargo-release Cache
id: cargo_release_cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cargo/bin/cargo-release
key: ${{ runner.os }}-cargo-release
Expand Down
82 changes: 52 additions & 30 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ peace_diff = { workspace = true }
peace_flow_model = { workspace = true }
peace_fmt = { workspace = true }
peace_params = { workspace = true }
peace_item_model = { workspace = true, optional = true }
peace_resource_rt = { workspace = true }
peace_rt = { workspace = true }
peace_rt_model = { workspace = true }
Expand Down Expand Up @@ -71,9 +72,26 @@ output_progress = [
"peace_cli?/output_progress",
"peace_cmd_rt/output_progress",
"peace_cfg/output_progress",
"peace_item_model/output_progress",
"peace_rt/output_progress",
"peace_rt_model/output_progress",
"peace_webi?/output_progress",
"peace_cmd_model/output_progress",
]
item_interactions = [
"dep:peace_item_model",
"peace_cfg/item_interactions",
"peace_webi?/item_interactions",
"peace_webi_components?/item_interactions",
]
item_state_example = [
"peace_cfg/item_state_example",
"peace_cmd/item_state_example",
"peace_data/item_state_example",
"peace_params/item_state_example",
"peace_rt_model/item_state_example",
"peace_webi?/item_state_example",
"peace_webi_components?/item_state_example",
]
ssr = [
"peace_webi?/ssr",
Expand Down Expand Up @@ -118,6 +136,7 @@ peace_flow_model = { path = "crate/flow_model", version = "0.0.13" }
peace_fmt = { path = "crate/fmt", version = "0.0.13" }
peace_params = { path = "crate/params", version = "0.0.13" }
peace_params_derive = { path = "crate/params_derive", version = "0.0.13" }
peace_item_model = { path = "crate/item_model", version = "0.0.13" }
peace_resource_rt = { path = "crate/resource_rt", version = "0.0.13" }
peace_rt = { path = "crate/rt", version = "0.0.13" }
peace_rt_model = { path = "crate/rt_model", version = "0.0.13" }
Expand All @@ -144,55 +163,58 @@ peace_item_tar_x = { path = "items/tar_x", version = "0.0.13" }
#
# This does not include examples' dependencies, because we want it to be easy for
# developers to see the dependencies to create an automation tool.
async-trait = "0.1.77"
axum = "0.7.4"
base64 = "0.22.0"
bytes = "1.5.0"
async-trait = "0.1.81"
axum = "0.7.5"
base64 = "0.22.1"
bytes = "1.7.1"
cfg-if = "1.0.0"
chrono = { version = "0.4.35", default-features = false, features = ["clock", "serde"] }
chrono = { version = "0.4.38", default-features = false, features = ["clock", "serde"] }
console = "0.15.8"
derivative = "2.2.0"
diff-struct = "0.5.3"
downcast-rs = "1.2.0"
dot_ix = { version = "0.5.0", default-features = false }
dot_ix = { version = "0.8.1", default-features = false }
dot_ix_model = "0.8.1"
downcast-rs = "1.2.1"
dyn-clone = "1.0.17"
enser = "0.1.4"
erased-serde = "0.4.3"
fn_graph = { version = "0.13.2", features = ["async", "graph_info", "interruptible", "resman"] }
erased-serde = "0.4.5"
fn_graph = { version = "0.13.3", features = ["async", "graph_info", "interruptible", "resman"] }
futures = "0.3.30"
heck = "0.4.1"
indexmap = "2.2.5"
gloo-timers = "0.3.0"
heck = "0.5.0"
indexmap = "2.5.0"
indicatif = "0.17.8"
interruptible = "0.2.2"
interruptible = "0.2.4"
leptos = { version = "0.6" }
leptos_axum = "0.6"
leptos_meta = { version = "0.6" }
leptos_router = { version = "0.6" }
libc = "0.2.153"
libc = "0.2.158"
miette = "7.2.0"
own = "0.1.0"
own = "0.1.3"
pretty_assertions = "1.4.0"
proc-macro2 = "1.0.78"
quote = "1.0.35"
proc-macro2 = "1.0.86"
quote = "1.0.37"
raw_tty = "0.1.0"
reqwest = "0.11.25"
resman = "0.17.0"
serde = "1.0.197"
reqwest = "0.12.7"
resman = "0.17.2"
serde = "1.0.209"
serde-wasm-bindgen = "0.6.5"
serde_json = "1.0.114"
serde_yaml = "0.9.32"
syn = "2.0.52"
tar = "0.4.40"
tempfile = "3.10.1"
thiserror = "1.0.57"
tokio = "1.36"
tokio-util = "0.7.10"
serde_json = "1.0.127"
serde_yaml = "0.9.34"
smallvec = "1.13.2"
syn = "2.0.77"
tar = "0.4.41"
tempfile = "3.12.0"
thiserror = "1.0.63"
tokio = "1.40"
tokio-util = "0.7.11"
tower-http = "0.5.2"
tynm = "0.1.10"
type_reg = { version = "0.7.0", features = ["debug", "untagged", "ordered"] }
url = "2.5.0"
wasm-bindgen = "0.2.92"
web-sys = "0.3.69"
url = "2.5.2"
wasm-bindgen = "0.2.95"
web-sys = "0.3.70"

[workspace.lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(coverage_nightly)'] }
9 changes: 8 additions & 1 deletion crate/cfg/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,18 @@ enser = { workspace = true }
peace_core = { workspace = true }
peace_data = { workspace = true }
peace_params = { workspace = true }
peace_item_model = { workspace = true, optional = true }
peace_resource_rt = { workspace = true }
serde = { workspace = true, features = ["derive"] }
tynm = { workspace = true }

[features]
default = []
error_reporting = ["peace_params/error_reporting"]
output_progress = ["peace_core/output_progress"]
output_progress = [
"dep:peace_item_model",
"peace_core/output_progress",
"peace_item_model/output_progress",
]
item_interactions = ["dep:peace_item_model"]
item_state_example = []
4 changes: 2 additions & 2 deletions crate/cfg/src/accessors/stored.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ where
}
}

impl<'borrow, T> DataAccess for Stored<'borrow, T> {
impl<T> DataAccess for Stored<'_, T> {
fn borrows() -> TypeIds
where
Self: Sized,
Expand All @@ -78,7 +78,7 @@ impl<'borrow, T> DataAccess for Stored<'borrow, T> {
}
}

impl<'borrow, T> DataAccessDyn for Stored<'borrow, T> {
impl<T> DataAccessDyn for Stored<'_, T> {
fn borrows(&self) -> TypeIds
where
Self: Sized,
Expand Down
Loading
Loading