forked from StrafesNET/asset-tool
Compare commits
81 Commits
Author | SHA1 | Date | |
---|---|---|---|
97638c5536 | |||
ae181fd401 | |||
312c0e7cd9 | |||
5ceb118ba1 | |||
c084219534 | |||
90aa03f86e | |||
53755caad5 | |||
561a94c4d3 | |||
6b689c8d6c | |||
a96715ecaf | |||
eac6546aed | |||
c43ed400c9 | |||
91aa21a993 | |||
1dff5d6856 | |||
b64da4511c | |||
8f2115ebf2 | |||
f23be6f445 | |||
0d1692f253 | |||
7ad7fa3d41 | |||
b8d5efe168 | |||
48ab23bae5 | |||
97286612b7 | |||
8e589f7f0f | |||
cbb5805d54 | |||
d6add611fb | |||
ebd5bb526e | |||
858ed8a89c | |||
35657d4d51 | |||
15e8c8208f | |||
5574c34045 | |||
e5322ad711 | |||
0d0f1b1792 | |||
1b3a8be142 | |||
eb20f8056d | |||
b3f5dd6c4d | |||
10f1ac313c | |||
2260d9a565 | |||
ee8e59b898 | |||
a9a40cd2f0 | |||
cef0f38482 | |||
c2041b33e4 | |||
29b4211484 | |||
bbbbd6bf64 | |||
e8ef06c2cb | |||
9dc67a22c1 | |||
67048cccf6 | |||
b9eaefe056 | |||
1bdfbf96c3 | |||
db44cf12be | |||
30169ddc5b | |||
4d77895260 | |||
aeb72503f0 | |||
1ba8d636f1 | |||
a5c01ff9cf | |||
c3ca545119 | |||
def0d1a69a | |||
00f4788169 | |||
e12c13a1dd | |||
816461e9f4 | |||
13ebb96ed6 | |||
097c92f602 | |||
82eb78db23 | |||
1434a11f28 | |||
1aef1f73d9 | |||
eebc843cb4 | |||
fdbe3251b3 | |||
b2f92a741c | |||
7e4a9f872c | |||
5f1178d0cf | |||
bb32d30896 | |||
03ae57e2e1 | |||
589c1b044e | |||
aed3b69ca0 | |||
4a081d5b8f | |||
54ca5520b7 | |||
23dfcadc85 | |||
1075d59a91 | |||
01676bb4da | |||
df62258608 | |||
dc4ec4547a | |||
929484855d |
559
Cargo.lock
generated
559
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
22
Cargo.toml
22
Cargo.toml
@ -1,20 +1,30 @@
|
||||
[package]
|
||||
name = "asset-tool"
|
||||
version = "0.1.0"
|
||||
version = "0.3.0"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
anyhow = "1.0.75"
|
||||
chrono = { version = "0.4.31", features = ["serde"] }
|
||||
clap = { version = "4.4.2", features = ["derive"] }
|
||||
flate2 = "1.0.28"
|
||||
futures = "0.3.30"
|
||||
git2 = "0.18.1"
|
||||
lazy-regex = "3.1.0"
|
||||
pollster = "0.3.0"
|
||||
rbx_binary = "0.7.1"
|
||||
rbx_dom_weak = "2.5.0"
|
||||
rbx_reflection_database = "0.2.7"
|
||||
rbx_xml = "0.13.1"
|
||||
reqwest = { version = "0.11.23", features = ["cookies"] }
|
||||
rayon = "1.8.0"
|
||||
rbx_binary = "0.7.4"
|
||||
rbx_dom_weak = "2.7.0"
|
||||
rbx_reflection_database = "0.2.10"
|
||||
rbx_xml = "0.13.3"
|
||||
reqwest = { version = "0.11.23", features = ["cookies", "json"] }
|
||||
serde = { version = "1.0.195", features = ["derive"] }
|
||||
serde_json = "1.0.111"
|
||||
tokio = { version = "1.35.1", features = ["macros", "rt-multi-thread", "fs"] }
|
||||
|
||||
[profile.release]
|
||||
#lto = true
|
||||
strip = true
|
||||
codegen-units = 1
|
||||
|
23
Containerfile
Normal file
23
Containerfile
Normal file
@ -0,0 +1,23 @@
|
||||
# Using the `rust-musl-builder` as base image, instead of
|
||||
# the official Rust toolchain
|
||||
FROM clux/muslrust:stable AS chef
|
||||
USER root
|
||||
RUN cargo install cargo-chef
|
||||
WORKDIR /app
|
||||
|
||||
FROM chef AS planner
|
||||
COPY . .
|
||||
RUN cargo chef prepare --recipe-path recipe.json
|
||||
|
||||
FROM chef AS builder
|
||||
COPY --from=planner /app/recipe.json recipe.json
|
||||
# Notice that we are specifying the --target flag!
|
||||
RUN cargo chef cook --release --target x86_64-unknown-linux-musl --recipe-path recipe.json
|
||||
COPY . .
|
||||
RUN cargo build --release --target x86_64-unknown-linux-musl --bin asset-tool
|
||||
|
||||
FROM alpine AS runtime
|
||||
RUN addgroup -S myuser && adduser -S myuser -G myuser
|
||||
COPY --from=builder /app/target/x86_64-unknown-linux-musl/release/asset-tool /usr/local/bin/
|
||||
USER myuser
|
||||
CMD ["/usr/local/bin/asset-tool"]
|
28
LICENSE
28
LICENSE
@ -1,9 +1,23 @@
|
||||
MIT License
|
||||
Permission is hereby granted, free of charge, to any
|
||||
person obtaining a copy of this software and associated
|
||||
documentation files (the "Software"), to deal in the
|
||||
Software without restriction, including without
|
||||
limitation the rights to use, copy, modify, merge,
|
||||
publish, distribute, sublicense, and/or sell copies of
|
||||
the Software, and to permit persons to whom the Software
|
||||
is furnished to do so, subject to the following
|
||||
conditions:
|
||||
|
||||
Copyright (c) 2023 Quaternions
|
||||
The above copyright notice and this permission notice
|
||||
shall be included in all copies or substantial portions
|
||||
of the Software.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
|
||||
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
|
||||
TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
|
||||
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
|
||||
SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
|
||||
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
DEALINGS IN THE SOFTWARE.
|
1778
src/main.rs
1778
src/main.rs
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user