Browse Source

Trying to run code on prelude

master
Julio Biason 4 years ago
parent
commit
5642a4bba2
  1. 5
      on-prelude/Cargo.lock
  2. 9
      on-prelude/Cargo.toml
  3. 7
      on-prelude/src/init.rs
  4. 7
      on-prelude/src/main.rs

5
on-prelude/Cargo.lock generated

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

9
on-prelude/Cargo.toml

@ -0,0 +1,9 @@
[package]
name = "on-prelude"
version = "0.1.0"
authors = ["Julio Biason <julio.biason@pm.me>"]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]

7
on-prelude/src/init.rs

@ -0,0 +1,7 @@
mod prelude {
fn init() {
println!("This is in init");
}
prelude::init();
}

7
on-prelude/src/main.rs

@ -0,0 +1,7 @@
mod init;
use init::prelude::*;
fn main() {
println!("Hello, world!");
}
Loading…
Cancel
Save