%load_ext rust_magic
Deps can be separated into separate cells:
%rust_deps time = "0.1.42"
Deps: time = "0.1.42"
%rust time::now().rfc822z().to_string()
Updating crates.io index Compiling winapi v0.3.8 Compiling time v0.1.42 Compiling cell v0.1.0 (C:\Users\ASUS\AppData\Local\Cargo\script-cache\file-cell-732c7979eb7da673) Finished release [optimized] target(s) in 18.28s "Sat, 31 Aug 2019 03:29:54 +0700"
Items too long to fit into a line can be put into a cell:
%%rust_deps
time = "0.1.42"
ndarray = {git = "https://github.com/rust-ndarray/ndarray.git"}
Deps: time = "0.1.42"; ndarray = {git = "https://github.com/rust-ndarray/ndarray.git"}
%%rust
(time::now().rfc822z().to_string(),
ndarray::Array::from_vec(vec![1., 2., 3.]).sum())
("Mon, 26 Aug 2019 17:12:58 +0700", 6.0)
%rust_deps
Deps: time = "0.1.42"; ndarray = "0.12.1"
%rust_deps --clear
Deps: <none>