This commit is contained in:
Mylloon 2023-09-19 16:17:33 +02:00
parent febe39c051
commit 25489c716a
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
7 changed files with 42 additions and 0 deletions

View file

@ -3,6 +3,7 @@
- [C](#c) - [C](#c)
- [C++](#c-1) - [C++](#c-1)
- [OCaml](#ocaml) - [OCaml](#ocaml)
- [Rust](#rust)
- [Typescript](#typescript) - [Typescript](#typescript)
## C ## C
@ -44,6 +45,13 @@ Copy and paste [`ocaml/`](./ocaml/) directory, and you should be good to go!
> (uri https://dev.example.com/project.git)) > (uri https://dev.example.com/project.git))
> ``` > ```
## Rust
Copy and paste [`rust/`](./rust/) directory, and you should be good to go!
- Remember to change values in the [`Cargo.toml`](./rust/Cargo.toml).
- **Run `cargo run` to run the program.**
## Typescript ## Typescript
Copy and paste [`typescript/`](./typescript/) directory, and you should be good to go! Copy and paste [`typescript/`](./typescript/) directory, and you should be good to go!

1
rust/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
/target

3
rust/.vscode/extensions.json vendored Normal file
View file

@ -0,0 +1,3 @@
{
"recommendations": ["rust-lang.rust-analyzer"]
}

10
rust/.vscode/settings.json vendored Normal file
View file

@ -0,0 +1,10 @@
{
"editor.tabSize": 2,
"editor.insertSpaces": false,
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true,
"files.trimTrailingWhitespace": true,
"rust-analyzer.check.command": "clippy"
}

7
rust/Cargo.lock generated Normal file
View file

@ -0,0 +1,7 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 3
[[package]]
name = "example"
version = "0.1.0"

10
rust/Cargo.toml Normal file
View file

@ -0,0 +1,10 @@
[package]
name = "example"
version = "0.1.0"
edition = "2021"
publish = false
license = "AGPL-3.0-or-later"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]

3
rust/src/main.rs Normal file
View file

@ -0,0 +1,3 @@
fn main() {
println!("Hello, world!");
}