2022-07-19 19:29:41 -04:00
|
|
|
[package]
|
|
|
|
name = "physis"
|
2024-04-15 21:35:29 -04:00
|
|
|
version = "0.3.0"
|
2022-07-19 19:29:41 -04:00
|
|
|
authors = ["Joshua Goins <josh@redstrate.com>"]
|
|
|
|
edition = "2021"
|
|
|
|
description = "Interact with XIV game data."
|
|
|
|
license = "GPL-3.0"
|
|
|
|
homepage = "https://xiv.zone/physis"
|
|
|
|
repository = "https://git.sr.ht/~redstrate/physis"
|
|
|
|
keywords = ["ffxiv", "modding"]
|
2022-09-13 16:55:50 -04:00
|
|
|
documentation = "https://docs.xiv.zone/docs/physis/"
|
|
|
|
readme = "README.md"
|
2022-07-19 19:29:41 -04:00
|
|
|
|
2023-09-24 16:19:08 -04:00
|
|
|
[profile.release]
|
|
|
|
lto = true
|
|
|
|
|
2022-07-19 19:29:41 -04:00
|
|
|
[[bench]]
|
2024-04-20 11:13:40 -04:00
|
|
|
name = "benchmark"
|
2022-07-19 19:29:41 -04:00
|
|
|
harness = false
|
|
|
|
|
2024-04-20 11:13:40 -04:00
|
|
|
[[bench]]
|
|
|
|
name = "retail_benchmark"
|
|
|
|
harness = false
|
|
|
|
required-features = ["retail_game_testing"]
|
2022-10-24 15:04:13 -04:00
|
|
|
|
2022-07-19 19:29:41 -04:00
|
|
|
[dev-dependencies]
|
2022-10-13 16:05:15 -04:00
|
|
|
hmac-sha512 = "1"
|
2022-10-25 13:53:24 -04:00
|
|
|
|
|
|
|
# used while rust doesn't have native benchmarking capability
|
2024-04-20 11:13:40 -04:00
|
|
|
brunch = { version = "0.5.3", default-features = false }
|
2022-10-25 13:53:24 -04:00
|
|
|
|
2024-04-29 18:57:15 -04:00
|
|
|
# used for testing our crc implementations
|
|
|
|
crc = "3"
|
2022-07-19 19:29:41 -04:00
|
|
|
|
2022-07-27 20:58:12 -04:00
|
|
|
[features]
|
2022-10-25 13:53:24 -04:00
|
|
|
default = ["visual_data"]
|
|
|
|
|
2023-12-02 20:33:08 -05:00
|
|
|
# enables game installation support using unshield (only supported on Linux and macOS)
|
2022-10-25 13:53:24 -04:00
|
|
|
game_install = []
|
|
|
|
|
2023-12-02 20:33:08 -05:00
|
|
|
# enables support for extracting visual data, such as models, textures, materials, etc.
|
|
|
|
# this enables a bunch of dependencies!
|
2022-10-25 13:53:24 -04:00
|
|
|
# tip: can be safely turned off for launchers and other tools that simply need to extract the bare minimum of data
|
2024-04-20 10:46:59 -04:00
|
|
|
visual_data = ["dep:half", "dep:bitflags", "dep:texture2ddecoder"]
|
2022-10-25 13:53:24 -04:00
|
|
|
|
|
|
|
# testing only features
|
2022-07-27 20:58:12 -04:00
|
|
|
retail_game_testing = []
|
2022-10-25 13:53:24 -04:00
|
|
|
patch_testing = ["game_install"]
|
2022-07-27 20:58:12 -04:00
|
|
|
|
2022-07-19 19:29:41 -04:00
|
|
|
[dependencies]
|
2022-08-06 18:15:33 -04:00
|
|
|
# amazing binary parsing/writing library
|
2023-12-02 19:45:46 -05:00
|
|
|
binrw = { version = "0.13.0", features = ["std"], default-features = false }
|
2022-08-06 18:15:33 -04:00
|
|
|
|
2023-12-02 19:45:46 -05:00
|
|
|
tracing = { version = "0.1.40", features = ["std"], default-features = false }
|
2023-04-06 14:51:40 -04:00
|
|
|
|
2022-08-06 18:15:33 -04:00
|
|
|
# used for zlib compression in sqpack files
|
2024-04-20 10:12:24 -04:00
|
|
|
libz-ng-sys = { version = "1.1" }
|
2022-08-06 18:15:33 -04:00
|
|
|
|
|
|
|
# nice to have features rust is lacking at the moment
|
2023-09-22 19:17:24 -04:00
|
|
|
modular-bitfield = "0.11"
|
2022-08-06 18:15:33 -04:00
|
|
|
|
2023-12-02 20:33:08 -05:00
|
|
|
# needed for half-float support which FFXIV uses in its model data
|
2022-10-25 13:53:24 -04:00
|
|
|
half = { version = "2", optional = true }
|
2022-08-06 18:15:33 -04:00
|
|
|
|
2022-08-11 09:23:15 -04:00
|
|
|
# needed for c-style bitflags used in some formats (such as tex files)
|
2023-03-31 17:29:53 -04:00
|
|
|
# cannot upgrade to 2.0.0, breaking changes that aren't recoverable: https://github.com/bitflags/bitflags/issues/314
|
2022-10-25 13:53:24 -04:00
|
|
|
bitflags = { version = "1.3", optional = true }
|
2022-08-11 15:03:12 -04:00
|
|
|
|
|
|
|
# needed for dxt/bc decompression
|
2024-04-21 10:04:35 -04:00
|
|
|
texture2ddecoder = { version = "0.0.5", optional = true }
|