[package]
edition = "2024"
rust-version = "1.85"
name = "ankit"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Complete async Rust client for the AnkiConnect API"
readme = "README.md"
keywords = [
"anki",
"flashcards",
"spaced-repetition",
"ankiconnect",
"api-client",
]
categories = [
"api-bindings",
"asynchronous",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/joshrotenberg/ankit"
resolver = "2"
[lib]
name = "ankit"
path = "src/lib.rs"
[[example]]
name = "add_notes"
path = "examples/add_notes.rs"
[[example]]
name = "basic"
path = "examples/basic.rs"
[[example]]
name = "batch"
path = "examples/batch.rs"
[[example]]
name = "live_test"
path = "examples/live_test.rs"
[[example]]
name = "search"
path = "examples/search.rs"
[[test]]
name = "cards"
path = "tests/cards.rs"
[[test]]
name = "decks"
path = "tests/decks.rs"
[[test]]
name = "graphical"
path = "tests/graphical.rs"
[[test]]
name = "media"
path = "tests/media.rs"
[[test]]
name = "miscellaneous"
path = "tests/miscellaneous.rs"
[[test]]
name = "models"
path = "tests/models.rs"
[[test]]
name = "notes"
path = "tests/notes.rs"
[[test]]
name = "statistics"
path = "tests/statistics.rs"
[dependencies.reqwest]
version = "0.12"
features = ["json"]
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.thiserror]
version = "2"
[dependencies.tokio]
version = "1"
features = [
"rt-multi-thread",
"macros",
]
[dev-dependencies.tokio]
version = "1"
features = [
"rt-multi-thread",
"macros",
"test-util",
]
[dev-dependencies.wiremock]
version = "0.6"