# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
name = "rime-api"
version = "0.12.2"
build = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A wrapper for librime `rime_api.h`"
homepage = "https://github.com/bczhc/librime-rs"
documentation = "https://docs.rs/rime-api/latest/rime-api"
readme = "README.md"
categories = ["api-bindings"]
license = "MIT/Apache-2.0"
repository = "https://github.com/bczhc/librime-rs"

[lib]
name = "rime_api"
path = "src/lib.rs"

[[example]]
name = "demo"
path = "examples/demo.rs"

[dependencies.cstr]
version = "0.2.11"

[dependencies.home]
version = "0.5.5"

[dependencies.librime-sys]
version = "0.4.0"

[dependencies.once_cell]
version = "1.17.1"

[dependencies.serde]
version = "1.0.185"
features = [
    "derive",
    "serde_derive",
]
optional = true

[dependencies.serde_json]
version = "1.0.105"
optional = true

[dependencies.thiserror]
version = "1.0.40"

[features]
serde = [
    "dep:serde",
    "dep:serde_json",
]