diff --git a/porque-rust.html b/porque-rust.html index 881753d..3c348cb 100644 --- a/porque-rust.html +++ b/porque-rust.html @@ -780,7 +780,7 @@ fn get_summary(summarizable: T) -> String
-struct Point {
+struct Point<T> {
x: T,
y: T
}
@@ -788,6 +788,52 @@ struct Point {
+
+
+
+
+ Cargo
+
+
+
+ "Cargo is the Rust package manager"
+
+
+ "Cargo downloads your Rust package’s dependencies,
+ compiles your packages, makes distributable
+ packages, and uploads them to crates.io, the Rust
+ community’s package registry."
+
+
+
+
+
+
+ Tests
+
+
+#[cfg(test)]
+mod tests {
+ #[test]
+ fn testing() {
+ }
+}
+
+
+
+
+
+$ cargo test
+ Compiling adder v0.1.0 (file:///projects/adder)
+ Finished dev [unoptimized + debuginfo] target(s) in 0.22 secs
+ Running target/debug/deps/adder-ce99bcc2479f4607
+
+running 1 test
+test tests::testing ... ok
+
+
+
+
Crazy stuff