Skip to content

Commit

Permalink
[deps,ci]: update Cargo.toml and add dependabot
Browse files Browse the repository at this point in the history
  • Loading branch information
null8626 committed Oct 28, 2023
1 parent 148c692 commit 5b0bb38
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: 2
updates:
- package-ecosystem: "cargo"
directory: "/"
commit-message:
prefix: "deps: "
schedule:
day: "saturday"
interval: "weekly"
time: "07:15"
10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ repository = "https://github.com/top-gg/rust-sdk"
license = "MIT"
keywords = ["discord", "bots", "topgg", "dbl"]
categories = ["api-bindings", "web-programming::http-client"]
exclude = [".gitattributes", ".gitignore", "rustfmt.toml"]
exclude = [".gitattributes", ".github/", ".gitignore", "rustfmt.toml"]

[dependencies]
cfg-if = "1"
hyper = { version = "0.14", features = ["client", "http1"], optional = true }
hyper-tls = { version = "0.5", optional = true }
serde = { version = "1", features = ["derive"] }
tokio = { version = "1", optional = true }
urlencoding = { version = "2", optional = true }
tokio = { version = "1", features = ["rt", "sync", "time"], optional = true }
urlencoding = "2"

chrono = { version = "0.4", default-features = false, optional = true, features = ["serde"] }
serde_json = { version = "1", optional = true }
Expand All @@ -35,8 +35,8 @@ rustc-args = ["--cfg", "docsrs"]

[features]
default = ["api"]
api = ["chrono", "hyper", "hyper-tls", "serde_json", "urlencoding"]
autoposter = ["api", "tokio/rt", "tokio/sync", "tokio/time"]
api = ["chrono", "hyper", "hyper-tls", "serde_json"]
autoposter = ["api", "tokio"]

webhook = []
rocket = ["webhook", "serde_json", "dep:rocket"]
Expand Down

0 comments on commit 5b0bb38

Please sign in to comment.