diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 0000000..7af5622 --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,5 @@ +[registry] +default = "vcs-elnafo" + +[registries.vcs-elnafo] +index = "sparse+https://vcs.elnafo.ru/api/packages/L-Nafaryus/cargo/" diff --git a/Cargo.toml b/Cargo.toml index 90ff0f4..b981dbe 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,9 +5,10 @@ edition = "2021" description = "Oscuro - a fancy discord bot" license = "MIT" repository = "https://vcs.elnafo.ru/L-Nafaryus/oscuro" +publish = ["vcs-elnafo"] [dependencies] -oscuro-core = { version = "0.1.0", path = "crates/oscuro-core" } +oscuro-core = { version = "0.1.0", path = "crates/oscuro-core", registry = "vcs-elnafo" } tokio = { version = "1.26.0", features = ["macros", "rt-multi-thread"] } tracing = "0.1.40" tracing-subscriber = { version = "0.3.18", features = ["env-filter"] } diff --git a/crates/oscuro-core/Cargo.toml b/crates/oscuro-core/Cargo.toml index f7b3c53..9f527cc 100644 --- a/crates/oscuro-core/Cargo.toml +++ b/crates/oscuro-core/Cargo.toml @@ -5,6 +5,7 @@ edition = "2021" description = "Core of a fancy discord bot Oscuro" license = "MIT" repository = "https://vcs.elnafo.ru/L-Nafaryus/oscuro" +publish = ["vcs-elnafo"] [dependencies] poise = "0.6.1" diff --git a/crates/oscuro-shuttle/Cargo.toml b/crates/oscuro-shuttle/Cargo.toml index ccf385d..73c974a 100644 --- a/crates/oscuro-shuttle/Cargo.toml +++ b/crates/oscuro-shuttle/Cargo.toml @@ -2,6 +2,7 @@ name = "oscuro-shuttle" version = "0.1.0" edition = "2021" +publish = false [dependencies] oscuro-core = { version = "0.1.0", path = "../oscuro-core" } diff --git a/flake.nix b/flake.nix index a4c80e4..6bee8e5 100644 --- a/flake.nix +++ b/flake.nix @@ -54,6 +54,7 @@ buildInputs = [ fenix-pkgs.complete.toolchain bonfire-pkgs.cargo-shuttle + pkgs.cargo-release ]; }; });