Skip to content

Commit 46154aa

Browse files
committed
complete more about crates.io
1 parent cf9b6d0 commit 46154aa

33 files changed

+572
-117
lines changed

.DS_Store

0 Bytes
Binary file not shown.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
\begin{Verbatim}[commandchars=\\\{\},codes={\catcode`\$=3\catcode`\^=7\catcode`\_=8\relax}]
2+
\PYG{k}{[package]}
3+
\end{Verbatim}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
\begin{Verbatim}[commandchars=\\\{\},codes={\catcode`\$=3\catcode`\^=7\catcode`\_=8\relax}]
2+
crates.io
3+
\end{Verbatim}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
\begin{Verbatim}[commandchars=\\\{\},codes={\catcode`\$=3\catcode`\^=7\catcode`\_=8\relax}]
2+
\PYG{l+s+sd}{//!}
3+
\end{Verbatim}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
\begin{Verbatim}[commandchars=\\\{\},codes={\catcode`\$=3\catcode`\^=7\catcode`\_=8\relax}]
2+
\PYG{n}{cargo}\PYG{+w}{ }\PYG{n}{doc}\PYG{+w}{ }\PYG{o}{\PYGZhy{}\PYGZhy{}}\PYG{n}{open}\PYG{+w}{ }
3+
\end{Verbatim}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
\begin{Verbatim}[commandchars=\\\{\},codes={\catcode`\$=3\catcode`\^=7\catcode`\_=8\relax}]
2+
\PYG{k}{[profile.dev]}
3+
\PYG{n}{opt\PYGZhy{}level}\PYG{+w}{ }\PYG{o}{=}\PYG{+w}{ }\PYG{l+m+mi}{0}
4+
5+
\PYG{k}{[profile.release]}
6+
\PYG{n}{opt\PYGZhy{}level}\PYG{+w}{ }\PYG{o}{=}\PYG{+w}{ }\PYG{l+m+mi}{3}
7+
\end{Verbatim}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
\begin{Verbatim}[commandchars=\\\{\},codes={\catcode`\$=3\catcode`\^=7\catcode`\_=8\relax}]
2+
\PYG{l+s+sd}{/// Adds one to the number given.}
3+
\PYG{l+s+sd}{///}
4+
\PYG{l+s+sd}{/// \PYGZsh{} Examples}
5+
\PYG{l+s+sd}{///}
6+
\PYG{l+s+sd}{/// ```}
7+
\PYG{l+s+sd}{/// let arg = 5;}
8+
\PYG{l+s+sd}{/// let answer = my\PYGZus{}crate::add\PYGZus{}one(arg);}
9+
\PYG{l+s+sd}{///}
10+
\PYG{l+s+sd}{/// assert\PYGZus{}eq!(6, answer);}
11+
\PYG{l+s+sd}{/// ```}
12+
\PYG{k}{pub}\PYG{+w}{ }\PYG{k}{fn} \PYG{n+nf}{add\PYGZus{}one}\PYG{p}{(}\PYG{n}{x}: \PYG{k+kt}{i32}\PYG{p}{)}\PYG{+w}{ }\PYGZhy{}\PYGZgt{} \PYG{k+kt}{i32} \PYG{p}{\PYGZob{}}
13+
\PYG{+w}{ }\PYG{n}{x}\PYG{+w}{ }\PYG{o}{+}\PYG{+w}{ }\PYG{l+m+mi}{1}
14+
\PYG{p}{\PYGZcb{}}
15+
\end{Verbatim}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
\begin{Verbatim}[commandchars=\\\{\},codes={\catcode`\$=3\catcode`\^=7\catcode`\_=8\relax}]
2+
\PYG{l+s+sd}{/// Adds one to the number given.}
3+
\PYG{l+s+sd}{///}
4+
\PYG{l+s+sd}{/// \PYGZsh{} Examples}
5+
\PYG{l+s+sd}{///}
6+
\PYG{l+s+sd}{/// ```}
7+
\PYG{l+s+sd}{/// let arg = 5;}
8+
\PYG{l+s+sd}{/// let answer = my\PYGZus{}crate::add\PYGZus{}one(arg);}
9+
\PYG{l+s+sd}{///}
10+
\PYG{l+s+sd}{/// assert\PYGZus{}eq!(6, answer);}
11+
\PYG{l+s+sd}{/// ```}
12+
\PYG{k}{pub}\PYG{+w}{ }\PYG{k}{fn} \PYG{n+nf}{add\PYGZus{}one}\PYG{p}{(}\PYG{n}{x}: \PYG{k+kt}{i32}\PYG{p}{)}\PYG{+w}{ }\PYGZhy{}\PYGZgt{} \PYG{k+kt}{i32} \PYG{p}{\PYGZob{}}
13+
\PYG{+w}{ }\PYG{n}{x}\PYG{+w}{ }\PYG{o}{+}\PYG{+w}{ }\PYG{l+m+mi}{1}
14+
\PYG{p}{\PYGZcb{}}
15+
\end{Verbatim}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
\begin{Verbatim}[commandchars=\\\{\},codes={\catcode`\$=3\catcode`\^=7\catcode`\_=8\relax}]
2+
cargo publish
3+
\end{Verbatim}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
\begin{Verbatim}[commandchars=\\\{\},codes={\catcode`\$=3\catcode`\^=7\catcode`\_=8\relax}]
2+
\PYG{k}{[package]}
3+
\PYG{n}{name}\PYG{+w}{ }\PYG{o}{=}\PYG{+w}{ }\PYG{l+s}{\PYGZdq{}guessing\PYGZus{}game\PYGZdq{}}
4+
\PYG{n}{version}\PYG{+w}{ }\PYG{o}{=}\PYG{+w}{ }\PYG{l+s}{\PYGZdq{}0.1.0\PYGZdq{}}
5+
\PYG{n}{edition}\PYG{+w}{ }\PYG{o}{=}\PYG{+w}{ }\PYG{l+s}{\PYGZdq{}2021\PYGZdq{}}
6+
\PYG{n}{description}\PYG{+w}{ }\PYG{o}{=}\PYG{+w}{ }\PYG{l+s}{\PYGZdq{}A fun game where you guess what number the computer has chosen.\PYGZdq{}}
7+
\PYG{n}{license}\PYG{+w}{ }\PYG{o}{=}\PYG{+w}{ }\PYG{l+s}{\PYGZdq{}MIT OR Apache\PYGZhy{}2.0\PYGZdq{}}
8+
9+
\PYG{k}{[dependencies]}
10+
\end{Verbatim}

0 commit comments

Comments
 (0)