Skip to content

Commit

Permalink
bump cargo-component to v0.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
DougAnderson444 committed Mar 13, 2024
1 parent e930c65 commit a0ef34d
Show file tree
Hide file tree
Showing 29 changed files with 4,217 additions and 3,259 deletions.
72 changes: 54 additions & 18 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 8 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
[workspace]
members = [".", "crates/*", "examples/crates/*"]
members = ["crates/*", "examples/crates/*"]
resolver = "2"

[workspace.dependencies]
seed-keeper-core = { path = "crates/seed-keeper-core" }
seed-keeper-events = { path = "crates/seed-keeper-events" }
wit-bindgen = { version = "0.16.0", default-features = false, features = ["realloc"] }
wurbo = "0.2.0"
bitflags = "2.4.2"
wit-bindgen-rt = "0.22.0"
wurbo = "0.3.0"

[package]
name = "seed-keeper"
Expand All @@ -30,3 +31,7 @@ overflow-checks = false
panic = 'abort' # Abort on panic
rpath = false
strip = true # Automatically strip symbols from the binary.

[patch.crates-io]
# patch with https://github.com/bytecodealliance/wit-bindgen/commit/9c913f6d119739a09b521deed89743b4a001aae1
wit-bindgen-rt = { git = "https://github.com/bytecodealliance/wit-bindgen.git", rev = "9c913f6" }
15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,16 @@ The Seed Keeper is a tool for generating, encrypting and managing Seeds. It is u

## Build

A [Justfile](https://just.systems) contains all the build scripts, just run it:

```bash
cargo component build --workspace --release
just build
```

Or build using [`cargo-component`](https://github.com/bytecodealliance/cargo-component) directly:

```bash
cargo component build
```

## Compose
Expand Down Expand Up @@ -74,12 +82,9 @@ world root {
Run all tests:

```bash
cargo test --workspace --all-targets --exclude seed-keeper-wit-ui
cargo test --workspace --all-targets
```

We need to `--exclude` the `seed-keeper-wit-ui` from tests because it's `crate-type` is both `cdylib` (for `cargo component build` step) and `lib` (so that `events` can be exported), however this setup breaks `cargo test`.


# Extensibility: Buidl your own wallet

## Plugins
Expand Down
3 changes: 2 additions & 1 deletion crates/seed-keeper-wallet/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
wit-bindgen = { workspace = true }
bitflags = { workspace = true }
wit-bindgen-rt = { workspace = true }
seed-keeper-core = { workspace = true }

[dev-dependencies]
Expand Down
Loading

0 comments on commit a0ef34d

Please sign in to comment.