Was this page helpful?
Caution
You're viewing documentation for an unstable version of Scylla Rust Driver. Switch to the latest stable version.
To create a new project run:
cargo new myproject
In Cargo.toml
add useful dependencies:
[dependencies]
scylla = "0.14"
tokio = { version = "1.12", features = ["full"] }
futures = "0.3.6"
uuid = "1.0"
bigdecimal = "0.4"
num-bigint = "0.3"
tracing = "0.1.36"
tracing-subscriber = { version = "0.3.14", features = ["env-filter"] }
In main.rs
put:
use scylla::Session;
#[tokio::main]
async fn main() {
println!("Hello scylla!");
}
Now running cargo run
should print:
Hello scylla!
Was this page helpful?