mirror of
https://codeberg.org/icewind/ugc-scaper.git
synced 2026-06-03 10:14:11 +02:00
fix api-server build
This commit is contained in:
parent
abd11dbe45
commit
65d58569b0
3 changed files with 3 additions and 8 deletions
2
api-server/Cargo.lock
generated
2
api-server/Cargo.lock
generated
|
|
@ -1964,7 +1964,6 @@ dependencies = [
|
|||
[[package]]
|
||||
name = "ugc-scraper"
|
||||
version = "0.5.0"
|
||||
source = "git+https://github.com/icewind1991/ugc-scaper#73c7c0a86740ac39239fb307094d7c6561e412c8"
|
||||
dependencies = [
|
||||
"regex",
|
||||
"reqwest",
|
||||
|
|
@ -1979,7 +1978,6 @@ dependencies = [
|
|||
[[package]]
|
||||
name = "ugc-scraper-types"
|
||||
version = "0.2.0"
|
||||
source = "git+https://github.com/icewind1991/ugc-scaper#73c7c0a86740ac39239fb307094d7c6561e412c8"
|
||||
dependencies = [
|
||||
"serde",
|
||||
"steamid-ng",
|
||||
|
|
|
|||
|
|
@ -6,8 +6,7 @@ edition = "2021"
|
|||
[dependencies]
|
||||
tokio = { version = "1.44.2", features = ["macros", "rt-multi-thread", "rt", "signal"] }
|
||||
main_error = "0.1.2"
|
||||
#ugc-scraper = { version = "*", path = ".." }
|
||||
ugc-scraper = { version = "0.5.0", git = "https://github.com/icewind1991/ugc-scaper" }
|
||||
ugc-scraper = { version = "*", path = ".." }
|
||||
#ugc-scraper = "0.5.0"
|
||||
axum = "0.8.3"
|
||||
steamid-ng = "1.0.0"
|
||||
|
|
|
|||
|
|
@ -7,11 +7,12 @@
|
|||
let
|
||||
inherit (lib.sources) sourceByRegex;
|
||||
inherit (builtins) fromTOML readFile;
|
||||
src = sourceByRegex ./api-server [ "Cargo.*" "(src)(/.*)?" "README.md" ];
|
||||
src = sourceByRegex ./. [ "Cargo.*" "((types|api-server|)/?(src)?)(/.*)?" "README.md" ];
|
||||
version = (fromTOML (readFile api-server/Cargo.toml)).package.version;
|
||||
in
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "ugc-api-server";
|
||||
sourceRoot = "${src.name}/api-server";
|
||||
|
||||
inherit src version;
|
||||
|
||||
|
|
@ -29,8 +30,5 @@ rustPlatform.buildRustPackage rec {
|
|||
|
||||
cargoLock = {
|
||||
lockFile = ./api-server/Cargo.lock;
|
||||
outputHashes = {
|
||||
"ugc-scraper-0.5.0" = "sha256-G5QCu2BJxyxMH7AuRsr122qAxzABQ/5DY12vCQ9uTCM=";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue