Skip to content

Commit

Permalink
Initial version
Browse files Browse the repository at this point in the history
  • Loading branch information
kbaraniak committed Oct 19, 2023
1 parent c4f63d3 commit ec94d1b
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/target
/testapi/target
/Cargo.lock
12 changes: 10 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
pub fn hello(){
print("Welcome");
pub fn hello() -> String {
println!("Welcome");
"Hello\n".to_string()
}


#[test]
fn test() {
hello();
println!("")
}
14 changes: 14 additions & 0 deletions testapi/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions testapi/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[package]
name = "testapi"
version = "0.1.0"
edition = "2021"

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

[dependencies.librus-api]
path = ".."
6 changes: 6 additions & 0 deletions testapi/src/main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
use librus_api::hello;

fn main() {
// println!("Hello, world!");
hello();
}

0 comments on commit ec94d1b

Please sign in to comment.