Fix imports; rust stable in CI
This commit is contained in:
parent
f439716500
commit
3535d15bbd
3 changed files with 5 additions and 5 deletions
|
@ -17,7 +17,7 @@ steps:
|
||||||
- git checkout $DRONE_COMMIT
|
- git checkout $DRONE_COMMIT
|
||||||
|
|
||||||
- name: style
|
- name: style
|
||||||
image: rustlang/rust:nightly
|
image: rust:1.58-buster
|
||||||
environment:
|
environment:
|
||||||
CARGO_HOME: /drone/cargo
|
CARGO_HOME: /drone/cargo
|
||||||
commands:
|
commands:
|
||||||
|
@ -28,7 +28,7 @@ steps:
|
||||||
- cargo clippy --example basalt --all-features -- --deny warnings
|
- cargo clippy --example basalt --all-features -- --deny warnings
|
||||||
|
|
||||||
- name: build
|
- name: build
|
||||||
image: rustlang/rust:nightly
|
image: rust:1.58-buster
|
||||||
environment:
|
environment:
|
||||||
CARGO_HOME: /drone/cargo
|
CARGO_HOME: /drone/cargo
|
||||||
commands:
|
commands:
|
||||||
|
@ -41,7 +41,7 @@ steps:
|
||||||
- cargo build --example basalt --features "basalt"
|
- cargo build --example basalt --features "basalt"
|
||||||
|
|
||||||
- name: test
|
- name: test
|
||||||
image: rustlang/rust:nightly
|
image: rust:1.58-buster
|
||||||
environment:
|
environment:
|
||||||
CARGO_HOME: /drone/cargo
|
CARGO_HOME: /drone/cargo
|
||||||
commands:
|
commands:
|
||||||
|
|
|
@ -17,7 +17,7 @@ name = "netapp"
|
||||||
[features]
|
[features]
|
||||||
default = []
|
default = []
|
||||||
basalt = ["lru", "rand"]
|
basalt = ["lru", "rand"]
|
||||||
telemetry = ["opentelemetry", "opentelemetry-contrib"]
|
telemetry = ["opentelemetry", "opentelemetry-contrib", "rand"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
futures = "0.3.17"
|
futures = "0.3.17"
|
||||||
|
|
|
@ -7,7 +7,7 @@ use log::{debug, trace};
|
||||||
|
|
||||||
#[cfg(feature = "telemetry")]
|
#[cfg(feature = "telemetry")]
|
||||||
use opentelemetry::{
|
use opentelemetry::{
|
||||||
trace::{FutureExt, Span, SpanKind, TraceContextExt, TraceId, Tracer},
|
trace::{FutureExt, SpanKind, TraceContextExt, TraceId, Tracer},
|
||||||
Context, KeyValue,
|
Context, KeyValue,
|
||||||
};
|
};
|
||||||
#[cfg(feature = "telemetry")]
|
#[cfg(feature = "telemetry")]
|
||||||
|
|
Loading…
Reference in a new issue