From 1dd1c773b0197fd072b5b3dcb9dea4d13f91a882 Mon Sep 17 00:00:00 2001 From: Laurens Miers Date: Fri, 23 May 2025 10:19:41 +0200 Subject: [PATCH 1/4] Initial commit: Hello world with basic woodpecker build pipeline --- .gitignore | 1 + .woodpecker/build.yaml | 9 +++++++++ Cargo.lock | 7 +++++++ Cargo.toml | 8 ++++++++ README.md | 3 +++ src/main.rs | 3 +++ 6 files changed, 31 insertions(+) create mode 100644 .gitignore create mode 100644 .woodpecker/build.yaml create mode 100644 Cargo.lock create mode 100644 Cargo.toml create mode 100644 README.md create mode 100644 src/main.rs diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ea8c4bf --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/target diff --git a/.woodpecker/build.yaml b/.woodpecker/build.yaml new file mode 100644 index 0000000..e52800d --- /dev/null +++ b/.woodpecker/build.yaml @@ -0,0 +1,9 @@ +when: + - event: push + branch: main + +steps: + - name: build + image: rust + commands: + - cargo build diff --git a/Cargo.lock b/Cargo.lock new file mode 100644 index 0000000..b20e273 --- /dev/null +++ b/Cargo.lock @@ -0,0 +1,7 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 3 + +[[package]] +name = "rlox-tree" +version = "0.1.0" diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..c045292 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "rlox-tree" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/README.md b/README.md new file mode 100644 index 0000000..0b9d2dc --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# Introduction + +This is an implementation of the first interpreter of the book [Crafting interpreters](https://craftinginterpreters.com/). diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +} From 7106afc654b112508db17786b2fd4d39b802d32b Mon Sep 17 00:00:00 2001 From: Laurens Miers Date: Fri, 23 May 2025 10:29:55 +0200 Subject: [PATCH 2/4] ci: add linter (clippy) Any warning is treated as an error --- .woodpecker/build.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.woodpecker/build.yaml b/.woodpecker/build.yaml index e52800d..a0f381f 100644 --- a/.woodpecker/build.yaml +++ b/.woodpecker/build.yaml @@ -7,3 +7,7 @@ steps: image: rust commands: - cargo build + - name: Linter + image: rust + commands: + - cargo clippy -- -Dwarnings From a1233d771bc6a413493ad3d5f3f3033f10dd9dba Mon Sep 17 00:00:00 2001 From: Laurens Miers Date: Fri, 23 May 2025 10:19:41 +0200 Subject: [PATCH 3/4] Initial commit: Hello world with basic woodpecker build pipeline --- .gitignore | 1 + .woodpecker/build.yaml | 9 +++++++++ Cargo.lock | 7 +++++++ Cargo.toml | 8 ++++++++ README.md | 3 +++ src/main.rs | 3 +++ 6 files changed, 31 insertions(+) create mode 100644 .gitignore create mode 100644 .woodpecker/build.yaml create mode 100644 Cargo.lock create mode 100644 Cargo.toml create mode 100644 README.md create mode 100644 src/main.rs diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ea8c4bf --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/target diff --git a/.woodpecker/build.yaml b/.woodpecker/build.yaml new file mode 100644 index 0000000..a80360f --- /dev/null +++ b/.woodpecker/build.yaml @@ -0,0 +1,9 @@ +when: + - event: push + branch: master + +steps: + - name: build + image: rust + commands: + - cargo build diff --git a/Cargo.lock b/Cargo.lock new file mode 100644 index 0000000..b20e273 --- /dev/null +++ b/Cargo.lock @@ -0,0 +1,7 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 3 + +[[package]] +name = "rlox-tree" +version = "0.1.0" diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..c045292 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "rlox-tree" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/README.md b/README.md new file mode 100644 index 0000000..0b9d2dc --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# Introduction + +This is an implementation of the first interpreter of the book [Crafting interpreters](https://craftinginterpreters.com/). diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +} From 8838a322f896a9a7e80c71269ebca072e161118f Mon Sep 17 00:00:00 2001 From: Laurens Miers Date: Fri, 23 May 2025 10:29:55 +0200 Subject: [PATCH 4/4] ci: add linter (clippy) Any warning is treated as an error --- .woodpecker/build.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.woodpecker/build.yaml b/.woodpecker/build.yaml index a80360f..5481a16 100644 --- a/.woodpecker/build.yaml +++ b/.woodpecker/build.yaml @@ -7,3 +7,7 @@ steps: image: rust commands: - cargo build + - name: Linter + image: rust + commands: + - cargo clippy -- -Dwarnings