Skip to content

Commit

Permalink
Add hash and iconforge as default features (#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
itsmeow authored Jan 18, 2025
1 parent 3d1bfa7 commit 61e61c3
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 15 deletions.
28 changes: 15 additions & 13 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ default = [
"dmi",
"file",
"git",
"hash",
"http",
"iconforge",
"json",
"log",
"noise",
Expand All @@ -96,7 +98,9 @@ all = [
"dmi",
"file",
"git",
"hash",
"http",
"iconforge",
"json",
"log",
"noise",
Expand All @@ -107,8 +111,6 @@ all = [
"time",
"toml",
"url",
"hash",
"iconforge",
"pathfinder",
"poissonnoise",
"redis_pubsub",
Expand All @@ -124,17 +126,6 @@ cellularnoise = ["rand", "rayon"]
dmi = ["png", "image", "dep:dmi"]
file = []
git = ["gix", "chrono"]
http = ["ureq", "serde", "serde_json", "once_cell", "jobs"]
json = ["serde", "serde_json"]
log = ["chrono"]
sanitize = ["ammonia", "serde_json"]
sound_len = ["symphonia"]
sql = ["mysql", "serde", "serde_json", "once_cell", "dashmap", "jobs"]
time = []
toml = ["serde", "serde_json", "toml-dep"]
url = ["url-dep", "percent-encoding"]

# additional features
hash = [
"base64",
"const-random",
Expand All @@ -146,6 +137,7 @@ hash = [
"serde",
"serde_json",
]
http = ["ureq", "serde", "serde_json", "once_cell", "jobs"]
iconforge = [
"dashmap",
"dep:dmi",
Expand All @@ -160,6 +152,16 @@ iconforge = [
"tracy_full",
"twox-hash",
]
json = ["serde", "serde_json"]
log = ["chrono"]
sanitize = ["ammonia", "serde_json"]
sound_len = ["symphonia"]
sql = ["mysql", "serde", "serde_json", "once_cell", "dashmap", "jobs"]
time = []
toml = ["serde", "serde_json", "toml-dep"]
url = ["url-dep", "percent-encoding"]

# additional features
pathfinder = ["num-integer", "pathfinding", "serde", "serde_json"]
poissonnoise = ["fast_poisson"]
redis_pubsub = ["flume", "redis", "serde", "serde_json"]
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ The default features are:
Mostly used by the asset cache subsystem to improve load times.
* file: Faster replacements for `file2text` and `text2file`, as well as reading or checking if files exist.
* git: Functions for robustly checking the current git revision.
* hash: Faster replacement for `md5`, support for SHA-1, SHA-256, and SHA-512.
* http: Asynchronous HTTP(s) client supporting most standard methods.
* iconforge: A much faster replacement for the spritesheet generation system used by [/tg/station].
* json: Function to check JSON validity.
* log: Faster log output.
* noise: 2d Perlin noise.
Expand All @@ -110,8 +112,6 @@ The default features are:
Additional features are:
* allow_non_32bit: Disables the forced compile errors on non-32bit targets. Only use this if you know exactly what you are doing.
* batchnoise: Discrete Batched Perlin-like Noise, fast and multi-threaded - sent over once instead of having to query for every tile.
* hash: Faster replacement for `md5`, support for SHA-1, SHA-256, and SHA-512. Requires OpenSSL on Linux.
* iconforge: A much faster replacement for the spritesheet generation system used by [/tg/station].
* pathfinder: An a* pathfinder used for finding the shortest path in a static node map. Not to be used for a non-static map.
* poissonnoise: A way to generate a 2D poisson disk distribution ('blue noise'), which is relatively uniform.
* redis_pubsub: Library for sending and receiving messages through Redis.
Expand Down

0 comments on commit 61e61c3

Please sign in to comment.