Browse Source

Merge branch 'release/20190417'

master
Julio Biason 6 years ago
parent
commit
a8e33b355e
  1. 48
      porque-rust.html

48
porque-rust.html

@ -780,7 +780,7 @@ fn get_summary(summarizable: T) -> String
<h2>Structs genéricas</h2> <h2>Structs genéricas</h2>
<pre><code class="hljs rust" data-trim> <pre><code class="hljs rust" data-trim>
struct Point<T> { struct Point&lt;T&gt; {
x: T, x: T,
y: T y: T
} }
@ -788,6 +788,52 @@ struct Point<T> {
</section> </section>
</section> </section>
<section>
<section>
<h2>
<a href="https://doc.rust-lang.org/cargo/">
Cargo
</a>
</h2>
<p>"Cargo is the Rust package manager"</p>
<p>
"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."
</p>
</section>
</section>
<section>
<section>
<h2>Tests</h2>
<pre><code class="hljs rust" data-trim>
#[cfg(test)]
mod tests {
#[test]
fn testing() {
}
}
</code></pre>
</section>
<section>
<pre><code>
$ 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
</code></pre>
</section>
</section>
<section> <section>
<section> <section>
<h2>Crazy stuff</h2> <h2>Crazy stuff</h2>

Loading…
Cancel
Save