Was this page helpful?
To create a new project run:
cargo new myproject
In Cargo.toml
add useful dependencies:
[dependencies]
scylla = "0.15"
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?