Browse Source

fix lock rc version

master
hole-thu 2 years ago
parent
commit
7621f56b34
  1. 1
      .dockerignore
  2. 3
      Cargo.toml
  3. 1
      Dockerfile
  4. 2
      rust-toolchain

1
.dockerignore

@ -1,6 +1,5 @@
/target /target
Cargo.lock Cargo.lock
rust-toolchain
/user_files /user_files
*.db *.db
.env .env

3
Cargo.toml

@ -12,7 +12,10 @@ mastlogin = ["reqwest"]
[dependencies] [dependencies]
rocket = { version = "=0.5.0-rc.2", features = ["json"] } rocket = { version = "=0.5.0-rc.2", features = ["json"] }
rocket_codegen = "=0.5.0-rc.2"
rocket_http = "=0.5.0-rc.2"
rocket_sync_db_pools = { version = "=0.1.0-rc.2", features = ["diesel_postgres_pool"] } rocket_sync_db_pools = { version = "=0.1.0-rc.2", features = ["diesel_postgres_pool"] }
rocket_sync_db_pools_codegen = "=0.1.0-rc.2"
diesel = { version = "1.4.8", features = ["postgres", "chrono"] } diesel = { version = "1.4.8", features = ["postgres", "chrono"] }
diesel_migrations = "1.4.0" diesel_migrations = "1.4.0"
redis = { version="0.23.0", features = ["aio", "tokio-comp"] } redis = { version="0.23.0", features = ["aio", "tokio-comp"] }

1
Dockerfile

@ -3,6 +3,7 @@ WORKDIR /usr/src/
RUN cargo new myapp --vcs none RUN cargo new myapp --vcs none
WORKDIR /usr/src/myapp WORKDIR /usr/src/myapp
COPY Cargo.toml ./ COPY Cargo.toml ./
COPY rust-toolchain ./
RUN cargo build --release RUN cargo build --release
# 为了充分利用docker的缓存 # 为了充分利用docker的缓存

2
rust-toolchain

@ -1 +1 @@
1.64 stable

Loading…
Cancel
Save