Skip to content
This repository was archived by the owner on Oct 22, 2020. It is now read-only.

Commit b828eb1

Browse files
Max LarssonMax Larsson
Max Larsson
authored and
Max Larsson
committed
Added license, removed tests, and added metadata to Cargo.toml
1 parent 9eb0eb1 commit b828eb1

File tree

4 files changed

+28
-11
lines changed

4 files changed

+28
-11
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
[package]
22
name = "python-input"
3-
version = "0.1.0"
4-
authors = ["student"]
3+
version = "0.5.0"
4+
authors = ["Max Larsson <[email protected]>"]
55
edition = "2018"
6+
description = "A rust implementation of the python 'input' function."
7+
repository = "https://github.com/maxslarsson/python-input"
8+
keywords = ["Python", "User", "Input", "Rust", "Implementation"]
9+
license-file = "LICENSE"
610

711
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
812

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2020 Max Larsson
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

src/lib.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,3 @@ pub fn input(input_string: &str) -> String {
1111

1212
return input;
1313
}
14-
15-
#[cfg(test)]
16-
mod tests {
17-
#[test]
18-
fn it_works() {
19-
assert_eq!(2 + 2, 4);
20-
}
21-
}

0 commit comments

Comments
 (0)