init
This commit is contained in:
commit
7e02b91ca3
3 changed files with 12 additions and 0 deletions
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
/target
|
||||
Cargo.lock
|
8
Cargo.toml
Normal file
8
Cargo.toml
Normal file
|
@ -0,0 +1,8 @@
|
|||
[package]
|
||||
name = "quine"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
2
src/main.rs
Normal file
2
src/main.rs
Normal file
|
@ -0,0 +1,2 @@
|
|||
fn main(){let s="fn main(){let s=@;print!(\"{}\",s.replacen('@',&format!(\"{s:?}\"),1))}";print!("{}",s.replacen('@',&format!("{s:?}"),1))}
|
||||
// fn main(){let s="fn main(){let s=@;print!(\"{}\",s.replacen('@',&format!(\"{s:?}\"),1))}";print!("{}",s.replacen('@',&format!("{s:?}"),1))}
|
Loading…
Reference in a new issue