Skip to content

Instantly share code, notes, and snippets.

@saolsen
Last active July 13, 2023 18:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save saolsen/24cc3a9f1289ddf11767a5be85d8b07c to your computer and use it in GitHub Desktop.
Save saolsen/24cc3a9f1289ddf11767a5be85d8b07c to your computer and use it in GitHub Desktop.
rust flat directory, whole rust project in a gist
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 3
[[package]]
name = "rust-flat-dir"
version = "0.1.0"
[package]
name = "rust-flat-dir"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
[[bin]]
name="rust-flat-dir"
path="main.rs"
mod other;
use other::foo;
fn main() {
foo();
println!("Hello, world!");
}
pub fn foo() {
println!("foo");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment