# 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 = "2024"
rust-version = "1.85.0"
name = "osynic_osuapi"
version = "0.1.11"
authors = ["Hako Chest <zoneherobrine@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "High performance, well-structured, extensible Rust osu! API client. Supports both WASM and native environments."
homepage = "https://osynic-osuapi.deno.dev"
documentation = "https://docs.rs/osynic_osuapi"
readme = "README.md"
keywords = [
    "osynic",
    "osu",
    "osuapi",
    "wasm",
]
categories = [
    "games",
    "api-bindings",
]
license = "MIT"
repository = "https://github.com/osynicite/osynic_osuapi"

[features]
default = [
    "v1",
    "v2",
    "not-wasm",
]
export = ["tsify"]
not-wasm = [
    "tokio",
    "reqwest",
]
v1 = ["bitflags"]
v2 = []
wasm = [
    "gloo-net",
    "web-sys",
    "js-sys",
    "serde-wasm-bindgen",
    "serde_urlencoded",
    "wasm-bindgen-futures",
    "wasm-bindgen",
    "urlencoding",
    "console_error_panic_hook",
]

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

[[bin]]
name = "osynic_osuapi"
path = "src/main.rs"

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.bitflags]
version = "2.11.0"
optional = true

[dependencies.chrono]
version = "0.4.44"
features = ["serde"]

[dependencies.console_error_panic_hook]
version = "0.1.7"
optional = true

[dependencies.gloo-net]
version = "0.7.0"
optional = true

[dependencies.js-sys]
version = "0.3.94"
optional = true

[dependencies.reqwest]
version = "0.13.2"
features = [
    "rustls",
    "json",
    "query",
    "form",
]
optional = true
default-features = false

[dependencies.serde]
version = "1.0.228"
features = ["derive"]

[dependencies.serde-wasm-bindgen]
version = "0.6.5"
optional = true

[dependencies.serde_json]
version = "1.0.149"

[dependencies.serde_urlencoded]
version = "0.7.1"
optional = true

[dependencies.tokio]
version = "1.51.1"
features = [
    "rt-multi-thread",
    "macros",
    "sync",
    "fs",
]
optional = true

[dependencies.tsify]
version = "0.5.6"
optional = true

[dependencies.urlencoding]
version = "2.1.3"
optional = true

[dependencies.wasm-bindgen]
version = "0.2.117"
optional = true

[dependencies.wasm-bindgen-futures]
version = "0.4.67"
optional = true

[dependencies.web-sys]
version = "0.3.94"
features = [
    "RequestInit",
    "Headers",
    "console",
    "Window",
    "Performance",
]
optional = true

[dev-dependencies.dotenvy]
version = "0.15.7"
