mirror of
https://github.com/revanced/revanced-discord-bot.git
synced 2025-05-05 16:54:25 +02:00
feat: use cargo git dependency instead of submodule
This commit is contained in:
parent
63c351daf4
commit
3c14cbe6a4
13
.github/workflows/rust.yml
vendored
13
.github/workflows/rust.yml
vendored
@ -2,21 +2,18 @@ name: Rust
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "main" ]
|
branches: ["main"]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ "main" ]
|
branches: ["main"]
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
- name: Build
|
||||||
submodules: recursive
|
run: cargo build --verbose
|
||||||
- name: Build
|
|
||||||
run: cargo build --verbose
|
|
||||||
|
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -1,3 +0,0 @@
|
|||||||
[submodule "submodules/serenity"]
|
|
||||||
path = submodules/serenity
|
|
||||||
url = git@github.com:serenity-rs/serenity.git
|
|
5
Cargo.lock
generated
5
Cargo.lock
generated
@ -343,9 +343,9 @@ checksum = "c4a1e36c821dbe04574f602848a19f742f4fb3c98d40449f11bcad18d6b17421"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "hyper"
|
name = "hyper"
|
||||||
version = "0.14.19"
|
version = "0.14.20"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "42dc3c131584288d375f2d07f822b0cb012d8c6fb899a5b9fdb3cb7eb9b6004f"
|
checksum = "02c929dc5c39e335a03c405292728118860721b10190d98c2a0f0efd5baafbac"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bytes",
|
"bytes",
|
||||||
"futures-channel",
|
"futures-channel",
|
||||||
@ -805,6 +805,7 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "serenity"
|
name = "serenity"
|
||||||
version = "0.11.2"
|
version = "0.11.2"
|
||||||
|
source = "git+https://github.com/serenity-rs/serenity.git#24c02845a0e9e7bde38dacd84607de973ffec10f"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"async-trait",
|
"async-trait",
|
||||||
"async-tungstenite",
|
"async-tungstenite",
|
||||||
|
@ -24,8 +24,4 @@ log = "0.4"
|
|||||||
regex = "1.0"
|
regex = "1.0"
|
||||||
serde_regex = "1.1"
|
serde_regex = "1.1"
|
||||||
chrono = "0.4"
|
chrono = "0.4"
|
||||||
|
serenity = { git = "https://github.com/serenity-rs/serenity.git", default_features = false, features = ["client", "gateway", "rustls_backend", "model"] }
|
||||||
[dependencies.serenity]
|
|
||||||
default-features = false
|
|
||||||
features = ["client", "gateway", "rustls_backend", "model"]
|
|
||||||
path = "submodules/serenity" # submodule due to serenity just recently including global slash commands
|
|
@ -1 +0,0 @@
|
|||||||
Subproject commit c5cc876484232383c8cd1a7ce71c60624b86a75a
|
|
Loading…
x
Reference in New Issue
Block a user