mirror of
https://github.com/eunomia-bpf/bpf-developer-tutorial.git
synced 2026-04-13 16:19:44 +08:00
Deploying to gh-pages from @ eunomia-bpf/bpf-developer-tutorial@4671af2739 🚀
This commit is contained in:
2
37-uprobe-rust/helloworld/.gitignore
vendored
Normal file
2
37-uprobe-rust/helloworld/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
target
|
||||
Cargo.lock
|
||||
8
37-uprobe-rust/helloworld/Cargo.toml
Normal file
8
37-uprobe-rust/helloworld/Cargo.toml
Normal file
@@ -0,0 +1,8 @@
|
||||
[package]
|
||||
name = "helloworld"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
8
37-uprobe-rust/helloworld/src/main.rs
Normal file
8
37-uprobe-rust/helloworld/src/main.rs
Normal file
@@ -0,0 +1,8 @@
|
||||
pub fn hello() -> i32 {
|
||||
println!("Hello, world!");
|
||||
0
|
||||
}
|
||||
|
||||
fn main() {
|
||||
hello();
|
||||
}
|
||||
Reference in New Issue
Block a user