mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Add tests for Rust
This commit is contained in:
parent
2a37fcd3fe
commit
b4edf2ce50
6 changed files with 74 additions and 4 deletions
5
testing/resources/rust_hooks_repo/.pre-commit-hooks.yaml
Normal file
5
testing/resources/rust_hooks_repo/.pre-commit-hooks.yaml
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
- id: rust-hook
|
||||
name: rust example hook
|
||||
entry: rust-hello-world
|
||||
language: rust
|
||||
files: ''
|
||||
3
testing/resources/rust_hooks_repo/Cargo.lock
generated
Normal file
3
testing/resources/rust_hooks_repo/Cargo.lock
generated
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
[[package]]
|
||||
name = "rust-hello-world"
|
||||
version = "0.1.0"
|
||||
3
testing/resources/rust_hooks_repo/Cargo.toml
Normal file
3
testing/resources/rust_hooks_repo/Cargo.toml
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
[package]
|
||||
name = "rust-hello-world"
|
||||
version = "0.1.0"
|
||||
3
testing/resources/rust_hooks_repo/src/main.rs
Normal file
3
testing/resources/rust_hooks_repo/src/main.rs
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
fn main() {
|
||||
println!("hello world");
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue