[package]
edition = "2024"
name = "libfj"
version = "0.10.0"
authors = ["NGnius (Graham) <ngniusness@gmail.com>"]
build = false
exclude = [
"test.sh",
"**/*.out.Techblox",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "An unofficial collection of APIs used in FreeJam games and mods"
homepage = "https://github.com/NGnius/libfj"
readme = "README.md"
license = "MIT"
repository = "https://github.com/NGnius/libfj"
[features]
all = [
"simple",
"robocraft",
"cardlife",
"techblox",
"convert",
"robocraft2",
]
cardlife = ["reqwest"]
convert = [
"obj",
"genmesh",
"cgmath",
]
default = ["all"]
robocraft = [
"reqwest",
"ureq",
]
robocraft2 = [
"reqwest",
"async-trait",
"chrono",
]
simple = ["ureq"]
techblox = [
"chrono",
"highhash",
"half",
"libfj_parsable_macro_derive",
]
[lib]
name = "libfj"
path = "src/lib.rs"
[[test]]
name = "cardlife_live"
path = "tests/cardlife_live.rs"
[[test]]
name = "clre_server"
path = "tests/clre_server.rs"
[[test]]
name = "convert_3d"
path = "tests/convert_3d.rs"
[[test]]
name = "robocraft2_factory"
path = "tests/robocraft2_factory.rs"
[[test]]
name = "robocraft_auth"
path = "tests/robocraft_auth.rs"
[[test]]
name = "robocraft_factory"
path = "tests/robocraft_factory.rs"
[[test]]
name = "robocraft_factory_simple"
path = "tests/robocraft_factory_simple.rs"
[[test]]
name = "techblox_parsing"
path = "tests/techblox_parsing.rs"
[dependencies.async-trait]
version = "0.1"
optional = true
[dependencies.base64]
version = "0.22"
[dependencies.cgmath]
version = "0.18"
optional = true
[dependencies.chrono]
version = "0.4"
optional = true
[dependencies.genmesh]
version = "0.6"
optional = true
[dependencies.half]
version = "2"
optional = true
[dependencies.highhash]
version = "^0.1"
optional = true
[dependencies.libfj_parsable_macro_derive]
version = "0.5.3"
optional = true
[dependencies.num_enum]
version = "0.5"
[dependencies.obj]
version = "0.10"
optional = true
[dependencies.reqwest]
version = "0.12"
features = [
"json",
"rustls-tls",
]
optional = true
default-features = false
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.ureq]
version = "2"
features = ["json"]
optional = true
[dependencies.url]
version = "2"
[dev-dependencies.tokio]
version = "1.4.0"
features = ["macros"]