Skip to content

Commit

Permalink
fix(cargo): disable default features and enable only required features
Browse files Browse the repository at this point in the history
Signed-off-by: SphericalKat <amolele@gmail.com>
  • Loading branch information
SphericalKat committed Feb 17, 2022
1 parent db5887b commit 2ba0088
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 206 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Install libssl-dev
run: sudo apt-get install -y libssl-dev

- name: Install dependencies
run: sudo apt-get install -y libssl-dev musl-tools

- name: Install rust
uses: actions-rs/toolchain@v1
Expand Down
201 changes: 0 additions & 201 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 16 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,27 @@ readme = "README.md"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
teloxide = { version = "0.7.0", features = ["macros", "auto-send", "rustls", "dispatching2", "cache-me"] }
teloxide = { version = "0.7.0", features = [
"macros",
"auto-send",
"rustls",
"dispatching2",
"cache-me",
"ctrlc_handler"
], default-features = false }
log = "0.4.14"
pretty_env_logger = "0.4.0"
tokio = { version = "1.17.0", features = ["rt-multi-thread", "macros", "rt"] }
dotenv = "0.15.0"
anyhow = "1.0.53"
sqlx = { version = "0.5.10", features = ["runtime-tokio-rustls", "postgres", "uuid", "chrono", "offline"] }
sqlx = { version = "0.5.10", features = [
"macros",
"runtime-tokio-rustls",
"postgres",
"uuid",
"chrono",
"offline",
], default-features = false }
lazy_static = "1.4.0"
chrono = "0.4.19"

Expand Down

0 comments on commit 2ba0088

Please sign in to comment.