Compare commits
53 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 2d9b1024be | |||
| c8fe02160e | |||
| 389943c361 | |||
| 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 |
1322
Cargo.lock
generated
1322
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
12
Cargo.toml
12
Cargo.toml
@@ -7,14 +7,24 @@ edition = "2021"
|
||||
|
||||
[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"
|
||||
gix = "0.57.1"
|
||||
lazy-regex = "3.1.0"
|
||||
pollster = "0.3.0"
|
||||
rayon = "1.8.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"] }
|
||||
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"]
|
||||
988
src/main.rs
988
src/main.rs
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user