[package] name = "opscope-core" version.workspace = true edition.workspace = true license.workspace = true homepage.workspace = true repository.workspace = true [dependencies] # The terminal is an ioctl and a termios struct away, both of which are in # libc. serde_json is here for one reason: every widget reads the same # config file, and hand-rolling a parser thirteen times over would be a bug # farm for no gain. libc = "0.2" serde_json = "1" # Widget dependency files use familiar npm-style ranges such as `>=8` and # `^1.2`; version probing remains central rather than being reimplemented by # every widget that invokes an external tool. semver = "1" # Timezones: the IANA database, so a world clock is right across a DST # boundary without this having to parse TZif itself. chrono = { version = "0.4", default-features = false, features = ["clock", "std"] } chrono-tz = "0.10" unicode-width = "0.2.2" # Pure Rust: compressed inline pixels, with no system image library or helper. base64 = "0.22" miniz_oxide = "0.8" # Google's service-account sign-in (src/google.rs): an RS256 JWT signed # locally and traded for an hour-long access token. Pure Rust, so nothing # here wants a system library at run time - `jsonwebtoken` would bring # aws-lc-rs (a C toolchain) and `ring` brings `cc`. RUSTSEC-2023-0071, the # Marvin timing side channel in `rsa`, is about an attacker timing many # decryptions or signatures; this signs one JWT an hour on the local # machine and exposes no timing to anybody. rsa = { version = "0.9", default-features = false, features = ["std", "pem", "sha2"] } sha2 = { version = "0.10", features = ["oid"] } # OpenCode session stores; SQLite ships inside the binary. rusqlite = { version = "0.32", features = ["bundled"] } [dev-dependencies] # Tests generate a throwaway key at test time, so no key material ever # enters the tree. Never reaches a release binary. rand = "0.8"