-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCargo.toml
More file actions
63 lines (59 loc) · 2.8 KB
/
Copy pathCargo.toml
File metadata and controls
63 lines (59 loc) · 2.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
[package]
name = "ostk-cache"
version = "0.4.0"
edition = "2024"
license = "MIT OR Apache-2.0"
repository = "https://github.com/os-tack/ostk-cache"
[workspace]
members = ["crates/ostk-cache-core"]
[dependencies]
# Membrane crates from os-tack/haystack (private repo). Resolved via git-dep
# pinned to per-crate tags so a CI runner without a local haystack checkout
# can still build. Local development uses the [patch] block below to short-
# circuit to a sibling path checkout. Auth: HTTPS — CI provides a token via
# `git config insteadOf` rewrite (see .github/workflows/ci.yml). Local dev
# uses git's normal credential helper.
ostk-files-light = { git = "https://github.com/os-tack/haystack.git", package = "ostk-files-light", tag = "ostk-files-light-v1.0.0" }
# →1781: page-table type surface (Page, PageState). The kernel crate is
# canonical; ostk-cache (the federation probe) reconciles to it via this
# membrane. Replaced the local Page/PageState definitions in src/lib.rs
# at the carve.
ostk-page = { git = "https://github.com/os-tack/haystack.git", package = "ostk-page", tag = "ostk-page-v1.0.0" }
# →1831: cache_control budget helpers (count_cache_control_fields,
# ANTHROPIC_CACHE_CONTROL_LIMIT). Single source of truth in the
# membrane — kernel and ostk-cache both reach the same numbers when
# deciding whether to add a cache breakpoint.
ostk-abi = { git = "https://github.com/os-tack/haystack.git", package = "ostk-abi", tag = "ostk-abi-v1.2.0" }
ostk-cache-core = { path = "crates/ostk-cache-core" }
sha2 = "0.10"
tokio = { version = "1", features = ["full"] }
hyper = { version = "1", features = ["full"] }
hyper-util = { version = "0.1", features = ["full"] }
http-body-util = "0.1"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
reqwest = { version = "0.12", features = ["json", "multipart", "stream"] }
dashmap = "5.5"
bytes = "1.0"
axum = "0.7"
async-stream = "0.3"
clap = { version = "4.6.1", features = ["derive"] }
flate2 = "1.0"
toml = "0.8"
[dev-dependencies]
tempfile = "3"
# Local-development tip: cargo doesn't gracefully fall back from a [patch]
# path to git when the path is missing — a missing sibling checkout breaks
# the build outright. So no project-level [patch] block here.
#
# If you have a sibling checkout at ../haystack and want cargo to short-
# circuit to it (skip the git fetch on every cargo update), add this block
# to your ~/.cargo/config.toml:
#
# [patch."https://github.com/os-tack/haystack.git"]
# ostk-abi = { path = "<absolute-path>/haystack/crates/ostk-abi" }
# ostk-files-light = { path = "<absolute-path>/haystack/crates/ostk-files-light" }
# ostk-page = { path = "<absolute-path>/haystack/crates/ostk-page" }
#
# Cargo merges configs from the project, parent dirs up to /, and ~/.cargo,
# so a personal block does not need to live in this repo.