mirror of
https://github.com/0xrsydn/idx-cli.git
synced 2026-11-07 09:45:36 +00:00
Phase 3a of docs/DESIGN.md. MockProvider moves to api/mock.rs, and it, the embedded MSN fixture bodies, and the IDX_MOCK_* hooks compile only with idx-core's new `testing` feature. idx-cli enables it as a dev-dependency, so `cargo test` keeps the fixture-backed provider while release binaries no longer embed fixture data or honor IDX_USE_MOCK_PROVIDER. Parser helpers used only by the mock are gated the same way. The packaged-cli flake check no longer relies on the mock; it checks an offline cache miss (JSON CACHEMISS, exit 3) instead. Goldens unchanged; clippy is clean with and without `testing`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
36 lines
1.1 KiB
TOML
36 lines
1.1 KiB
TOML
[package]
|
|
name = "idx-core"
|
|
description = "Data layer for Indonesian stock market (IDX) market, financial, and ownership data"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
rust-version.workspace = true
|
|
license.workspace = true
|
|
repository.workspace = true
|
|
homepage.workspace = true
|
|
readme = "../../README.md"
|
|
keywords = ["idx", "stocks", "indonesia", "finance"]
|
|
categories = ["finance"]
|
|
include = ["/Cargo.toml", "/LICENSE", "/src/**", "/tests/fixtures/**"]
|
|
|
|
[features]
|
|
default = ["ownership"]
|
|
ownership = ["dep:rusqlite", "dep:quick-xml", "dep:sha2", "dep:zip"]
|
|
# Derives clap::ValueEnum on enums frontends expose as CLI arguments.
|
|
clap = ["dep:clap"]
|
|
# Fixture-backed mock provider (IDX_USE_MOCK_PROVIDER) for tests only.
|
|
testing = []
|
|
|
|
[dependencies]
|
|
clap = { workspace = true, optional = true }
|
|
ureq.workspace = true
|
|
serde.workspace = true
|
|
serde_json.workspace = true
|
|
toml.workspace = true
|
|
directories = "5"
|
|
chrono.workspace = true
|
|
thiserror = "2"
|
|
fastrand = "2"
|
|
rusqlite = { workspace = true, optional = true }
|
|
quick-xml = { version = "0.37", optional = true }
|
|
sha2 = { workspace = true, optional = true }
|
|
zip = { workspace = true, optional = true }
|