@allourthings/core 0.1.10 → 0.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -1,42 +1,14 @@
|
|
|
1
1
|
# allourthings-core
|
|
2
2
|
|
|
3
|
-
Rust storage library for [
|
|
3
|
+
Rust storage library for [AllOurThings](https://allourthings.io) — an AI-powered household inventory system.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Shared across clients via platform-specific bindings:
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
```bash
|
|
13
|
-
cargo test # run all tests
|
|
14
|
-
bun run build # build the .node native addon for the MCP server
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
## iOS distribution
|
|
18
|
-
|
|
19
|
-
### Local development
|
|
20
|
-
|
|
21
|
-
```bash
|
|
22
|
-
./scripts/build-ios.sh # release build (default)
|
|
23
|
-
./scripts/build-ios.sh --debug # debug build
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
This compiles the crate for all iOS targets, generates Swift bindings via UniFFI, and assembles a static XCFramework at `build/allourthings_core.xcframework`. The generated Swift bindings are committed to `Sources/AllourthingsCore/allourthings_core.swift`.
|
|
27
|
-
|
|
28
|
-
In the iOS project, add `../allourthings-core` as a local Swift Package Manager dependency — Xcode resolves the XCFramework automatically.
|
|
29
|
-
|
|
30
|
-
### Published releases
|
|
31
|
-
|
|
32
|
-
Tagging a version (e.g. `git tag v0.1.8 && git push origin v0.1.8`) triggers `.github/workflows/release-ios.yml`, which:
|
|
33
|
-
|
|
34
|
-
1. Builds the XCFramework for all iOS targets
|
|
35
|
-
2. Zips it and computes the SPM checksum
|
|
36
|
-
3. Patches `Package.swift` with the remote URL and checksum
|
|
37
|
-
4. Commits and force-moves the tag, then creates a GitHub release with the zip attached
|
|
38
|
-
|
|
39
|
-
iOS consumers can then depend on this repo via SPM without needing a Rust toolchain.
|
|
7
|
+
| Consumer | Distribution |
|
|
8
|
+
|---|---|
|
|
9
|
+
| MCP server (Node.js) | npm — `@allourthings/core` |
|
|
10
|
+
| iOS app | Swift Package Manager — binary XCFramework |
|
|
11
|
+
| Android app *(planned)* | crates.io — `allourthings-core` |
|
|
40
12
|
|
|
41
13
|
## Storage format
|
|
42
14
|
|
|
@@ -46,7 +18,7 @@ Each item is a directory containing a single JSON file:
|
|
|
46
18
|
<data-dir>/items/<slug>-<id>/item.json
|
|
47
19
|
```
|
|
48
20
|
|
|
49
|
-
Required fields: `id`, `name`, `created_at`, `updated_at`. All other fields are optional
|
|
21
|
+
Required fields: `id`, `name`, `created_at`, `updated_at`. All other fields are optional and round-trip without modification.
|
|
50
22
|
|
|
51
23
|
## License
|
|
52
24
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|