cargo-script icon indicating copy to clipboard operation
cargo-script copied to clipboard

Problems with self-modifying scripts

Open vi opened this issue 9 years ago • 2 comments
trafficstars

This hack is supposed to increment on each run:

use std::fs::File;use std::io::Write;fn main(){let c=0;
    let mut v = vec![];
    ::std::io::Read::read_to_end(&mut File::open("q").unwrap(),&mut v).unwrap();
    let mut q = &mut File::create("q").unwrap();
    q.write(&v[..53]).unwrap();
    q.write(format!("{}",c+1).as_bytes()).unwrap();
    q.write(&v[54..]).unwrap();
    println!("{}", c);
}

But it stops incrementing if I run if quickly (without waiting after cargo-script script q):

$ cargo-script script q
    Finished release [optimized] target(s) in 0.0 secs
0
$ cargo-script script q 2> /dev/null
1
$ cargo-script script q 2> /dev/null
2
$ cargo-script script q 2> /dev/null
3
$ cargo-script script q 2> /dev/null
4
$ cargo-script script q 2> /dev/null
5
$ cargo-script script q 2> /dev/null
5
$ cargo-script script q 2> /dev/null
5
$ cargo-script script q 2> /dev/null
5
$ cargo-script script q 2> /dev/null
5

Although self-modifying scripts are no priority for cargo-script, this may indicate some issue with caching and lead to stale caches after updating normal scripts.

vi avatar Aug 30 '16 18:08 vi

I've been trying to reproduce this, but I just can't observe this behaviour.

Part of the caching system involves writing a metadata file to the cache for every script built. This includes the source script's mtime (assuming it wasn't an expression on the command line), and a hash of the input script. If the metadata block computed for an invocation doesn't exactly match the metadata block stored in the cache, it triggers a rebuild of the package.

This rebuild involves rewriting the manifest and the source file. However, to avoid incessant recompiling, it won't touch the files if they haven't changed (it computes and compares hashes of the existing file and the new contents before overwriting). Finally, it invokes Cargo.

About the only way I can see this happening is if Cargo itself decides it doesn't need to rebuild the executable (even if the filesystem has very low-precision mtimes, the hash check should prevent cargo-script from re-using the cached package). However, I can't actually trigger this behaviour.

If you can reliably reproduce this, it might help to run cargo-script with full logging, so I can see what it's actually doing, and which part is deciding not to rebuild. This can be done by running with the RUST_LOG environment variable set to "cargo_script=debug".

If it's Cargo deciding not to build, I'm not sure what I can do that doesn't involve blindly forcing Cargo to always rebuild everything every time, which would rather defeat the point of cargo-script.

DanielKeep avatar Sep 25 '16 06:09 DanielKeep

Here is the long log. It has stopped on 8.

date=1475970959.060679040$ 
date=1475970959.581643555$ RUST_LOG=cargo_script=debug cargo-script script q
INFO:cargo_script: starting
INFO:cargo_script: args: ["cargo-script", "script", "q"]
INFO:cargo_script: Arguments: Args { script: Some("q"), args: [], features: None, expr: false, loop_: false, count: false, pkg_path: None, gen_pkg_only: false, build_only: false, clear_cache: false, debug: false, dep: [], dep_extern: [], extern_: [], force: false, unstable_features: [], use_bincache: None }
INFO:cargo_script: input: File("q", "/tmp/cs/q", "use std::fs::File;use std::io::Write;fn main(){let c=0;\n    let mut v = vec![];\n    ::std::io::Read::read_to_end(&mut File::open(\"q\").unwrap(),&mut v).unwrap();\n    let mut q = &mut File::create(\"q\").unwrap();\n    q.write(&v[..53]).unwrap();\n    q.write(format!(\"{}\",c+1).as_bytes()).unwrap();\n    q.write(&v[54..]).unwrap();\n    println!(\"{}\", c);\n}\n", 1475970855000)
INFO:cargo_script: deps: []
INFO:cargo_script: prelude_items: []
INFO:cargo_script: cache_path: "/home/vi/.cargo/script-cache"
INFO:cargo_script: id: "file-q-2363294a81e39875"
INFO:cargo_script: pkg_path: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875"
INFO:cargo_script: using_cache: true
INFO:cargo_script: splitting input...
INFO:cargo_script::manifest: splitting because of marker '"use "'
INFO:cargo_script::manifest: part_mani: Toml("")
INFO:cargo_script::manifest: source: "use std::fs::File;use std::io::Write;fn main(){let c=0;\n    let mut v = vec![];\n    ::std::io::Read::read_to_end(&mut File::open(\"q\").unwrap(),&mut v).unwrap();\n    let mut q = &mut File::create(\"q\").unwrap();\n    q.write(&v[..53]).unwrap();\n    q.write(format!(\"{}\",c+1).as_bytes()).unwrap();\n    q.write(&v[54..]).unwrap();\n    println!(\"{}\", c);\n}\n"
INFO:cargo_script::manifest: part_mani: {}
INFO:cargo_script::manifest: mani: {"bin": Array([Table({"name": String("q"), "path": String("q.rs")})]), "dependencies": Table({}), "package": Table({"authors": Array([String("Anonymous")]), "name": String("q"), "version": String("0.1.0")})}
INFO:cargo_script::manifest: mani_str: 
[[bin]]
name = "q"
path = "q.rs"

[dependencies]

[package]
authors = ["Anonymous"]
name = "q"
version = "0.1.0"

INFO:cargo_script: input_meta: PackageMetadata { path: Some("/tmp/cs/q"), modified: Some(1475970855000), debug: false, deps: [], prelude: [], features: None, manifest_hash: "381c27ee0ce4e79268ed7ec8ae93ef5d1042d862", script_hash: "5af7fe50574bbaae46e654a9a8022a9d6bfdcaac" }
DEBUG:cargo_script: meta_path: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875/metadata.json"
INFO:cargo_script: recompiling because: metadata did not match
DEBUG:cargo_script: input metadata: PackageMetadata { path: Some("/tmp/cs/q"), modified: Some(1475970855000), debug: false, deps: [], prelude: [], features: None, manifest_hash: "381c27ee0ce4e79268ed7ec8ae93ef5d1042d862", script_hash: "5af7fe50574bbaae46e654a9a8022a9d6bfdcaac" }
DEBUG:cargo_script: cache metadata: PackageMetadata { path: Some("/tmp/cs/q"), modified: Some(1475970831000), debug: false, deps: [], prelude: [], features: None, manifest_hash: "381c27ee0ce4e79268ed7ec8ae93ef5d1042d862", script_hash: "15edae7aaf80364a544e058838e2c8db48c65244" }
INFO:cargo_script: action: InputAction { compile: true, force_compile: false, emit_metadata: true, execute: true, pkg_path: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875", using_cache: true, use_bincache: true, metadata: PackageMetadata { path: Some("/tmp/cs/q"), modified: Some(1475970855000), debug: false, deps: [], prelude: [], features: None, manifest_hash: "381c27ee0ce4e79268ed7ec8ae93ef5d1042d862", script_hash: "5af7fe50574bbaae46e654a9a8022a9d6bfdcaac" }, old_metadata: Some(PackageMetadata { path: Some("/tmp/cs/q"), modified: Some(1475970831000), debug: false, deps: [], prelude: [], features: None, manifest_hash: "381c27ee0ce4e79268ed7ec8ae93ef5d1042d862", script_hash: "15edae7aaf80364a544e058838e2c8db48c65244" }), manifest: "\n[[bin]]\nname = \"q\"\npath = \"q.rs\"\n\n[dependencies]\n\n[package]\nauthors = [\"Anonymous\"]\nname = \"q\"\nversion = \"0.1.0\"\n", script: "use std::fs::File;use std::io::Write;fn main(){let c=0;\n    let mut v = vec![];\n    ::std::io::Read::read_to_end(&mut File::open(\"q\").unwrap(),&mut v).unwrap();\n    let mut q = &mut File::create(\"q\").unwrap();\n    q.write(&v[..53]).unwrap();\n    q.write(format!(\"{}\",c+1).as_bytes()).unwrap();\n    q.write(&v[54..]).unwrap();\n    println!(\"{}\", c);\n}\n" }
INFO:cargo_script: creating pkg dir...
INFO:cargo_script: generating Cargo package...
DEBUG:cargo_script: overwrite_file("/home/vi/.cargo/script-cache/file-q-2363294a81e39875/Cargo.toml", _, Some("381c27ee0ce4e79268ed7ec8ae93ef5d1042d862"))
DEBUG:cargo_script: .. hashes match
DEBUG:cargo_script: overwrite_file("/home/vi/.cargo/script-cache/file-q-2363294a81e39875/q.rs", _, Some("15edae7aaf80364a544e058838e2c8db48c65244"))
DEBUG:cargo_script: .. hashes differ; new_hash: "5af7fe50574bbaae46e654a9a8022a9d6bfdcaac"
INFO:cargo_script: compiling...
   Compiling q v0.1.0 (file:///home/vi/.cargo/script-cache/file-q-2363294a81e39875)
    Finished release [optimized] target(s) in 1.15 secs
INFO:cargo_script: writing meta hash: "a30343f764a8d180b6be7bf53fcf7466f8cf25e9"...
INFO:cargo_script: emitting metadata...
DEBUG:cargo_script: meta_path: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875/metadata.json"
INFO:cargo_script: disarming pkg dir cleanup...
INFO:cargo_script: executing "/home/vi/.cargo/binary-cache/release/q"
0
INFO:cargo_script: cleaning cache with max_age: 604800000
INFO:cargo_script: cutoff:            1475366161468 ms
INFO:cargo_script: checking: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875"
INFO:cargo_script: meta_mtime:        1475970961000 ms
INFO:cargo_script: done cleaning cache.
date=1475970961.475720072$ RUST_LOG=cargo_script=debug cargo-script script q
INFO:cargo_script: starting
INFO:cargo_script: args: ["cargo-script", "script", "q"]
INFO:cargo_script: Arguments: Args { script: Some("q"), args: [], features: None, expr: false, loop_: false, count: false, pkg_path: None, gen_pkg_only: false, build_only: false, clear_cache: false, debug: false, dep: [], dep_extern: [], extern_: [], force: false, unstable_features: [], use_bincache: None }
INFO:cargo_script: input: File("q", "/tmp/cs/q", "use std::fs::File;use std::io::Write;fn main(){let c=1;\n    let mut v = vec![];\n    ::std::io::Read::read_to_end(&mut File::open(\"q\").unwrap(),&mut v).unwrap();\n    let mut q = &mut File::create(\"q\").unwrap();\n    q.write(&v[..53]).unwrap();\n    q.write(format!(\"{}\",c+1).as_bytes()).unwrap();\n    q.write(&v[54..]).unwrap();\n    println!(\"{}\", c);\n}\n", 1475970961000)
INFO:cargo_script: deps: []
INFO:cargo_script: prelude_items: []
INFO:cargo_script: cache_path: "/home/vi/.cargo/script-cache"
INFO:cargo_script: id: "file-q-2363294a81e39875"
INFO:cargo_script: pkg_path: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875"
INFO:cargo_script: using_cache: true
INFO:cargo_script: splitting input...
INFO:cargo_script::manifest: splitting because of marker '"use "'
INFO:cargo_script::manifest: part_mani: Toml("")
INFO:cargo_script::manifest: source: "use std::fs::File;use std::io::Write;fn main(){let c=1;\n    let mut v = vec![];\n    ::std::io::Read::read_to_end(&mut File::open(\"q\").unwrap(),&mut v).unwrap();\n    let mut q = &mut File::create(\"q\").unwrap();\n    q.write(&v[..53]).unwrap();\n    q.write(format!(\"{}\",c+1).as_bytes()).unwrap();\n    q.write(&v[54..]).unwrap();\n    println!(\"{}\", c);\n}\n"
INFO:cargo_script::manifest: part_mani: {}
INFO:cargo_script::manifest: mani: {"bin": Array([Table({"name": String("q"), "path": String("q.rs")})]), "dependencies": Table({}), "package": Table({"authors": Array([String("Anonymous")]), "name": String("q"), "version": String("0.1.0")})}
INFO:cargo_script::manifest: mani_str: 
[[bin]]
name = "q"
path = "q.rs"

[dependencies]

[package]
authors = ["Anonymous"]
name = "q"
version = "0.1.0"

INFO:cargo_script: input_meta: PackageMetadata { path: Some("/tmp/cs/q"), modified: Some(1475970961000), debug: false, deps: [], prelude: [], features: None, manifest_hash: "381c27ee0ce4e79268ed7ec8ae93ef5d1042d862", script_hash: "258b0c03f12bd3f1b6420920946f4601800cdbd1" }
DEBUG:cargo_script: meta_path: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875/metadata.json"
INFO:cargo_script: recompiling because: metadata did not match
DEBUG:cargo_script: input metadata: PackageMetadata { path: Some("/tmp/cs/q"), modified: Some(1475970961000), debug: false, deps: [], prelude: [], features: None, manifest_hash: "381c27ee0ce4e79268ed7ec8ae93ef5d1042d862", script_hash: "258b0c03f12bd3f1b6420920946f4601800cdbd1" }
DEBUG:cargo_script: cache metadata: PackageMetadata { path: Some("/tmp/cs/q"), modified: Some(1475970855000), debug: false, deps: [], prelude: [], features: None, manifest_hash: "381c27ee0ce4e79268ed7ec8ae93ef5d1042d862", script_hash: "5af7fe50574bbaae46e654a9a8022a9d6bfdcaac" }
INFO:cargo_script: action: InputAction { compile: true, force_compile: false, emit_metadata: true, execute: true, pkg_path: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875", using_cache: true, use_bincache: true, metadata: PackageMetadata { path: Some("/tmp/cs/q"), modified: Some(1475970961000), debug: false, deps: [], prelude: [], features: None, manifest_hash: "381c27ee0ce4e79268ed7ec8ae93ef5d1042d862", script_hash: "258b0c03f12bd3f1b6420920946f4601800cdbd1" }, old_metadata: Some(PackageMetadata { path: Some("/tmp/cs/q"), modified: Some(1475970855000), debug: false, deps: [], prelude: [], features: None, manifest_hash: "381c27ee0ce4e79268ed7ec8ae93ef5d1042d862", script_hash: "5af7fe50574bbaae46e654a9a8022a9d6bfdcaac" }), manifest: "\n[[bin]]\nname = \"q\"\npath = \"q.rs\"\n\n[dependencies]\n\n[package]\nauthors = [\"Anonymous\"]\nname = \"q\"\nversion = \"0.1.0\"\n", script: "use std::fs::File;use std::io::Write;fn main(){let c=1;\n    let mut v = vec![];\n    ::std::io::Read::read_to_end(&mut File::open(\"q\").unwrap(),&mut v).unwrap();\n    let mut q = &mut File::create(\"q\").unwrap();\n    q.write(&v[..53]).unwrap();\n    q.write(format!(\"{}\",c+1).as_bytes()).unwrap();\n    q.write(&v[54..]).unwrap();\n    println!(\"{}\", c);\n}\n" }
INFO:cargo_script: creating pkg dir...
INFO:cargo_script: generating Cargo package...
DEBUG:cargo_script: overwrite_file("/home/vi/.cargo/script-cache/file-q-2363294a81e39875/Cargo.toml", _, Some("381c27ee0ce4e79268ed7ec8ae93ef5d1042d862"))
DEBUG:cargo_script: .. hashes match
DEBUG:cargo_script: overwrite_file("/home/vi/.cargo/script-cache/file-q-2363294a81e39875/q.rs", _, Some("5af7fe50574bbaae46e654a9a8022a9d6bfdcaac"))
DEBUG:cargo_script: .. hashes differ; new_hash: "258b0c03f12bd3f1b6420920946f4601800cdbd1"
INFO:cargo_script: compiling...
   Compiling q v0.1.0 (file:///home/vi/.cargo/script-cache/file-q-2363294a81e39875)
    Finished release [optimized] target(s) in 1.5 secs
INFO:cargo_script: writing meta hash: "1d4c8352f7b9251700f003c9628b908538b377ce"...
INFO:cargo_script: emitting metadata...
DEBUG:cargo_script: meta_path: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875/metadata.json"
INFO:cargo_script: disarming pkg dir cleanup...
INFO:cargo_script: executing "/home/vi/.cargo/binary-cache/release/q"
1
INFO:cargo_script: cleaning cache with max_age: 604800000
INFO:cargo_script: cutoff:            1475366164921 ms
INFO:cargo_script: checking: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875"
INFO:cargo_script: meta_mtime:        1475970964000 ms
INFO:cargo_script: done cleaning cache.
date=1475970964.932091729$ RUST_LOG=cargo_script=debug cargo-script script q
INFO:cargo_script: starting
INFO:cargo_script: args: ["cargo-script", "script", "q"]
INFO:cargo_script: Arguments: Args { script: Some("q"), args: [], features: None, expr: false, loop_: false, count: false, pkg_path: None, gen_pkg_only: false, build_only: false, clear_cache: false, debug: false, dep: [], dep_extern: [], extern_: [], force: false, unstable_features: [], use_bincache: None }
INFO:cargo_script: input: File("q", "/tmp/cs/q", "use std::fs::File;use std::io::Write;fn main(){let c=2;\n    let mut v = vec![];\n    ::std::io::Read::read_to_end(&mut File::open(\"q\").unwrap(),&mut v).unwrap();\n    let mut q = &mut File::create(\"q\").unwrap();\n    q.write(&v[..53]).unwrap();\n    q.write(format!(\"{}\",c+1).as_bytes()).unwrap();\n    q.write(&v[54..]).unwrap();\n    println!(\"{}\", c);\n}\n", 1475970964000)
INFO:cargo_script: deps: []
INFO:cargo_script: prelude_items: []
INFO:cargo_script: cache_path: "/home/vi/.cargo/script-cache"
INFO:cargo_script: id: "file-q-2363294a81e39875"
INFO:cargo_script: pkg_path: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875"
INFO:cargo_script: using_cache: true
INFO:cargo_script: splitting input...
INFO:cargo_script::manifest: splitting because of marker '"use "'
INFO:cargo_script::manifest: part_mani: Toml("")
INFO:cargo_script::manifest: source: "use std::fs::File;use std::io::Write;fn main(){let c=2;\n    let mut v = vec![];\n    ::std::io::Read::read_to_end(&mut File::open(\"q\").unwrap(),&mut v).unwrap();\n    let mut q = &mut File::create(\"q\").unwrap();\n    q.write(&v[..53]).unwrap();\n    q.write(format!(\"{}\",c+1).as_bytes()).unwrap();\n    q.write(&v[54..]).unwrap();\n    println!(\"{}\", c);\n}\n"
INFO:cargo_script::manifest: part_mani: {}
INFO:cargo_script::manifest: mani: {"bin": Array([Table({"name": String("q"), "path": String("q.rs")})]), "dependencies": Table({}), "package": Table({"authors": Array([String("Anonymous")]), "name": String("q"), "version": String("0.1.0")})}
INFO:cargo_script::manifest: mani_str: 
[[bin]]
name = "q"
path = "q.rs"

[dependencies]

[package]
authors = ["Anonymous"]
name = "q"
version = "0.1.0"

INFO:cargo_script: input_meta: PackageMetadata { path: Some("/tmp/cs/q"), modified: Some(1475970964000), debug: false, deps: [], prelude: [], features: None, manifest_hash: "381c27ee0ce4e79268ed7ec8ae93ef5d1042d862", script_hash: "927c3e3869fdf4127fb00d304ca6d586d33fa672" }
DEBUG:cargo_script: meta_path: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875/metadata.json"
INFO:cargo_script: recompiling because: metadata did not match
DEBUG:cargo_script: input metadata: PackageMetadata { path: Some("/tmp/cs/q"), modified: Some(1475970964000), debug: false, deps: [], prelude: [], features: None, manifest_hash: "381c27ee0ce4e79268ed7ec8ae93ef5d1042d862", script_hash: "927c3e3869fdf4127fb00d304ca6d586d33fa672" }
DEBUG:cargo_script: cache metadata: PackageMetadata { path: Some("/tmp/cs/q"), modified: Some(1475970961000), debug: false, deps: [], prelude: [], features: None, manifest_hash: "381c27ee0ce4e79268ed7ec8ae93ef5d1042d862", script_hash: "258b0c03f12bd3f1b6420920946f4601800cdbd1" }
INFO:cargo_script: action: InputAction { compile: true, force_compile: false, emit_metadata: true, execute: true, pkg_path: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875", using_cache: true, use_bincache: true, metadata: PackageMetadata { path: Some("/tmp/cs/q"), modified: Some(1475970964000), debug: false, deps: [], prelude: [], features: None, manifest_hash: "381c27ee0ce4e79268ed7ec8ae93ef5d1042d862", script_hash: "927c3e3869fdf4127fb00d304ca6d586d33fa672" }, old_metadata: Some(PackageMetadata { path: Some("/tmp/cs/q"), modified: Some(1475970961000), debug: false, deps: [], prelude: [], features: None, manifest_hash: "381c27ee0ce4e79268ed7ec8ae93ef5d1042d862", script_hash: "258b0c03f12bd3f1b6420920946f4601800cdbd1" }), manifest: "\n[[bin]]\nname = \"q\"\npath = \"q.rs\"\n\n[dependencies]\n\n[package]\nauthors = [\"Anonymous\"]\nname = \"q\"\nversion = \"0.1.0\"\n", script: "use std::fs::File;use std::io::Write;fn main(){let c=2;\n    let mut v = vec![];\n    ::std::io::Read::read_to_end(&mut File::open(\"q\").unwrap(),&mut v).unwrap();\n    let mut q = &mut File::create(\"q\").unwrap();\n    q.write(&v[..53]).unwrap();\n    q.write(format!(\"{}\",c+1).as_bytes()).unwrap();\n    q.write(&v[54..]).unwrap();\n    println!(\"{}\", c);\n}\n" }
INFO:cargo_script: creating pkg dir...
INFO:cargo_script: generating Cargo package...
DEBUG:cargo_script: overwrite_file("/home/vi/.cargo/script-cache/file-q-2363294a81e39875/Cargo.toml", _, Some("381c27ee0ce4e79268ed7ec8ae93ef5d1042d862"))
DEBUG:cargo_script: .. hashes match
DEBUG:cargo_script: overwrite_file("/home/vi/.cargo/script-cache/file-q-2363294a81e39875/q.rs", _, Some("258b0c03f12bd3f1b6420920946f4601800cdbd1"))
DEBUG:cargo_script: .. hashes differ; new_hash: "927c3e3869fdf4127fb00d304ca6d586d33fa672"
INFO:cargo_script: compiling...
   Compiling q v0.1.0 (file:///home/vi/.cargo/script-cache/file-q-2363294a81e39875)
    Finished release [optimized] target(s) in 0.89 secs
INFO:cargo_script: writing meta hash: "c008fd16cf2d05a8dd9ac9e335f9f9e4620b9fa4"...
INFO:cargo_script: emitting metadata...
DEBUG:cargo_script: meta_path: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875/metadata.json"
INFO:cargo_script: disarming pkg dir cleanup...
INFO:cargo_script: executing "/home/vi/.cargo/binary-cache/release/q"
2
INFO:cargo_script: cleaning cache with max_age: 604800000
INFO:cargo_script: cutoff:            1475366168776 ms
INFO:cargo_script: checking: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875"
INFO:cargo_script: meta_mtime:        1475970968000 ms
INFO:cargo_script: done cleaning cache.
date=1475970968.783146442$ RUST_LOG=cargo_script=debug cargo-script script q
INFO:cargo_script: starting
INFO:cargo_script: args: ["cargo-script", "script", "q"]
INFO:cargo_script: Arguments: Args { script: Some("q"), args: [], features: None, expr: false, loop_: false, count: false, pkg_path: None, gen_pkg_only: false, build_only: false, clear_cache: false, debug: false, dep: [], dep_extern: [], extern_: [], force: false, unstable_features: [], use_bincache: None }
INFO:cargo_script: input: File("q", "/tmp/cs/q", "use std::fs::File;use std::io::Write;fn main(){let c=3;\n    let mut v = vec![];\n    ::std::io::Read::read_to_end(&mut File::open(\"q\").unwrap(),&mut v).unwrap();\n    let mut q = &mut File::create(\"q\").unwrap();\n    q.write(&v[..53]).unwrap();\n    q.write(format!(\"{}\",c+1).as_bytes()).unwrap();\n    q.write(&v[54..]).unwrap();\n    println!(\"{}\", c);\n}\n", 1475970968000)
INFO:cargo_script: deps: []
INFO:cargo_script: prelude_items: []
INFO:cargo_script: cache_path: "/home/vi/.cargo/script-cache"
INFO:cargo_script: id: "file-q-2363294a81e39875"
INFO:cargo_script: pkg_path: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875"
INFO:cargo_script: using_cache: true
INFO:cargo_script: splitting input...
INFO:cargo_script::manifest: splitting because of marker '"use "'
INFO:cargo_script::manifest: part_mani: Toml("")
INFO:cargo_script::manifest: source: "use std::fs::File;use std::io::Write;fn main(){let c=3;\n    let mut v = vec![];\n    ::std::io::Read::read_to_end(&mut File::open(\"q\").unwrap(),&mut v).unwrap();\n    let mut q = &mut File::create(\"q\").unwrap();\n    q.write(&v[..53]).unwrap();\n    q.write(format!(\"{}\",c+1).as_bytes()).unwrap();\n    q.write(&v[54..]).unwrap();\n    println!(\"{}\", c);\n}\n"
INFO:cargo_script::manifest: part_mani: {}
INFO:cargo_script::manifest: mani: {"bin": Array([Table({"name": String("q"), "path": String("q.rs")})]), "dependencies": Table({}), "package": Table({"authors": Array([String("Anonymous")]), "name": String("q"), "version": String("0.1.0")})}
INFO:cargo_script::manifest: mani_str: 
[[bin]]
name = "q"
path = "q.rs"

[dependencies]

[package]
authors = ["Anonymous"]
name = "q"
version = "0.1.0"

INFO:cargo_script: input_meta: PackageMetadata { path: Some("/tmp/cs/q"), modified: Some(1475970968000), debug: false, deps: [], prelude: [], features: None, manifest_hash: "381c27ee0ce4e79268ed7ec8ae93ef5d1042d862", script_hash: "15edae7aaf80364a544e058838e2c8db48c65244" }
DEBUG:cargo_script: meta_path: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875/metadata.json"
INFO:cargo_script: recompiling because: metadata did not match
DEBUG:cargo_script: input metadata: PackageMetadata { path: Some("/tmp/cs/q"), modified: Some(1475970968000), debug: false, deps: [], prelude: [], features: None, manifest_hash: "381c27ee0ce4e79268ed7ec8ae93ef5d1042d862", script_hash: "15edae7aaf80364a544e058838e2c8db48c65244" }
DEBUG:cargo_script: cache metadata: PackageMetadata { path: Some("/tmp/cs/q"), modified: Some(1475970964000), debug: false, deps: [], prelude: [], features: None, manifest_hash: "381c27ee0ce4e79268ed7ec8ae93ef5d1042d862", script_hash: "927c3e3869fdf4127fb00d304ca6d586d33fa672" }
INFO:cargo_script: action: InputAction { compile: true, force_compile: false, emit_metadata: true, execute: true, pkg_path: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875", using_cache: true, use_bincache: true, metadata: PackageMetadata { path: Some("/tmp/cs/q"), modified: Some(1475970968000), debug: false, deps: [], prelude: [], features: None, manifest_hash: "381c27ee0ce4e79268ed7ec8ae93ef5d1042d862", script_hash: "15edae7aaf80364a544e058838e2c8db48c65244" }, old_metadata: Some(PackageMetadata { path: Some("/tmp/cs/q"), modified: Some(1475970964000), debug: false, deps: [], prelude: [], features: None, manifest_hash: "381c27ee0ce4e79268ed7ec8ae93ef5d1042d862", script_hash: "927c3e3869fdf4127fb00d304ca6d586d33fa672" }), manifest: "\n[[bin]]\nname = \"q\"\npath = \"q.rs\"\n\n[dependencies]\n\n[package]\nauthors = [\"Anonymous\"]\nname = \"q\"\nversion = \"0.1.0\"\n", script: "use std::fs::File;use std::io::Write;fn main(){let c=3;\n    let mut v = vec![];\n    ::std::io::Read::read_to_end(&mut File::open(\"q\").unwrap(),&mut v).unwrap();\n    let mut q = &mut File::create(\"q\").unwrap();\n    q.write(&v[..53]).unwrap();\n    q.write(format!(\"{}\",c+1).as_bytes()).unwrap();\n    q.write(&v[54..]).unwrap();\n    println!(\"{}\", c);\n}\n" }
INFO:cargo_script: creating pkg dir...
INFO:cargo_script: generating Cargo package...
DEBUG:cargo_script: overwrite_file("/home/vi/.cargo/script-cache/file-q-2363294a81e39875/Cargo.toml", _, Some("381c27ee0ce4e79268ed7ec8ae93ef5d1042d862"))
DEBUG:cargo_script: .. hashes match
DEBUG:cargo_script: overwrite_file("/home/vi/.cargo/script-cache/file-q-2363294a81e39875/q.rs", _, Some("927c3e3869fdf4127fb00d304ca6d586d33fa672"))
DEBUG:cargo_script: .. hashes differ; new_hash: "15edae7aaf80364a544e058838e2c8db48c65244"
INFO:cargo_script: compiling...
   Compiling q v0.1.0 (file:///home/vi/.cargo/script-cache/file-q-2363294a81e39875)
    Finished release [optimized] target(s) in 0.96 secs
INFO:cargo_script: writing meta hash: "cc091b99530ac4b43aa2c47a3a685afb5b2dff3a"...
INFO:cargo_script: emitting metadata...
DEBUG:cargo_script: meta_path: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875/metadata.json"
INFO:cargo_script: disarming pkg dir cleanup...
INFO:cargo_script: executing "/home/vi/.cargo/binary-cache/release/q"
3
INFO:cargo_script: cleaning cache with max_age: 604800000
INFO:cargo_script: cutoff:            1475366172186 ms
INFO:cargo_script: checking: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875"
INFO:cargo_script: meta_mtime:        1475970972000 ms
INFO:cargo_script: done cleaning cache.
date=1475970972.199641887$ RUST_LOG=cargo_script=debug cargo-script script q
INFO:cargo_script: starting
INFO:cargo_script: args: ["cargo-script", "script", "q"]
INFO:cargo_script: Arguments: Args { script: Some("q"), args: [], features: None, expr: false, loop_: false, count: false, pkg_path: None, gen_pkg_only: false, build_only: false, clear_cache: false, debug: false, dep: [], dep_extern: [], extern_: [], force: false, unstable_features: [], use_bincache: None }
INFO:cargo_script: input: File("q", "/tmp/cs/q", "use std::fs::File;use std::io::Write;fn main(){let c=4;\n    let mut v = vec![];\n    ::std::io::Read::read_to_end(&mut File::open(\"q\").unwrap(),&mut v).unwrap();\n    let mut q = &mut File::create(\"q\").unwrap();\n    q.write(&v[..53]).unwrap();\n    q.write(format!(\"{}\",c+1).as_bytes()).unwrap();\n    q.write(&v[54..]).unwrap();\n    println!(\"{}\", c);\n}\n", 1475970972000)
INFO:cargo_script: deps: []
INFO:cargo_script: prelude_items: []
INFO:cargo_script: cache_path: "/home/vi/.cargo/script-cache"
INFO:cargo_script: id: "file-q-2363294a81e39875"
INFO:cargo_script: pkg_path: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875"
INFO:cargo_script: using_cache: true
INFO:cargo_script: splitting input...
INFO:cargo_script::manifest: splitting because of marker '"use "'
INFO:cargo_script::manifest: part_mani: Toml("")
INFO:cargo_script::manifest: source: "use std::fs::File;use std::io::Write;fn main(){let c=4;\n    let mut v = vec![];\n    ::std::io::Read::read_to_end(&mut File::open(\"q\").unwrap(),&mut v).unwrap();\n    let mut q = &mut File::create(\"q\").unwrap();\n    q.write(&v[..53]).unwrap();\n    q.write(format!(\"{}\",c+1).as_bytes()).unwrap();\n    q.write(&v[54..]).unwrap();\n    println!(\"{}\", c);\n}\n"
INFO:cargo_script::manifest: part_mani: {}
INFO:cargo_script::manifest: mani: {"bin": Array([Table({"name": String("q"), "path": String("q.rs")})]), "dependencies": Table({}), "package": Table({"authors": Array([String("Anonymous")]), "name": String("q"), "version": String("0.1.0")})}
INFO:cargo_script::manifest: mani_str: 
[[bin]]
name = "q"
path = "q.rs"

[dependencies]

[package]
authors = ["Anonymous"]
name = "q"
version = "0.1.0"

INFO:cargo_script: input_meta: PackageMetadata { path: Some("/tmp/cs/q"), modified: Some(1475970972000), debug: false, deps: [], prelude: [], features: None, manifest_hash: "381c27ee0ce4e79268ed7ec8ae93ef5d1042d862", script_hash: "6e252414753715d531be2e821dc5ab9ab12a48ed" }
DEBUG:cargo_script: meta_path: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875/metadata.json"
INFO:cargo_script: recompiling because: metadata did not match
DEBUG:cargo_script: input metadata: PackageMetadata { path: Some("/tmp/cs/q"), modified: Some(1475970972000), debug: false, deps: [], prelude: [], features: None, manifest_hash: "381c27ee0ce4e79268ed7ec8ae93ef5d1042d862", script_hash: "6e252414753715d531be2e821dc5ab9ab12a48ed" }
DEBUG:cargo_script: cache metadata: PackageMetadata { path: Some("/tmp/cs/q"), modified: Some(1475970968000), debug: false, deps: [], prelude: [], features: None, manifest_hash: "381c27ee0ce4e79268ed7ec8ae93ef5d1042d862", script_hash: "15edae7aaf80364a544e058838e2c8db48c65244" }
INFO:cargo_script: action: InputAction { compile: true, force_compile: false, emit_metadata: true, execute: true, pkg_path: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875", using_cache: true, use_bincache: true, metadata: PackageMetadata { path: Some("/tmp/cs/q"), modified: Some(1475970972000), debug: false, deps: [], prelude: [], features: None, manifest_hash: "381c27ee0ce4e79268ed7ec8ae93ef5d1042d862", script_hash: "6e252414753715d531be2e821dc5ab9ab12a48ed" }, old_metadata: Some(PackageMetadata { path: Some("/tmp/cs/q"), modified: Some(1475970968000), debug: false, deps: [], prelude: [], features: None, manifest_hash: "381c27ee0ce4e79268ed7ec8ae93ef5d1042d862", script_hash: "15edae7aaf80364a544e058838e2c8db48c65244" }), manifest: "\n[[bin]]\nname = \"q\"\npath = \"q.rs\"\n\n[dependencies]\n\n[package]\nauthors = [\"Anonymous\"]\nname = \"q\"\nversion = \"0.1.0\"\n", script: "use std::fs::File;use std::io::Write;fn main(){let c=4;\n    let mut v = vec![];\n    ::std::io::Read::read_to_end(&mut File::open(\"q\").unwrap(),&mut v).unwrap();\n    let mut q = &mut File::create(\"q\").unwrap();\n    q.write(&v[..53]).unwrap();\n    q.write(format!(\"{}\",c+1).as_bytes()).unwrap();\n    q.write(&v[54..]).unwrap();\n    println!(\"{}\", c);\n}\n" }
INFO:cargo_script: creating pkg dir...
INFO:cargo_script: generating Cargo package...
DEBUG:cargo_script: overwrite_file("/home/vi/.cargo/script-cache/file-q-2363294a81e39875/Cargo.toml", _, Some("381c27ee0ce4e79268ed7ec8ae93ef5d1042d862"))
DEBUG:cargo_script: .. hashes match
DEBUG:cargo_script: overwrite_file("/home/vi/.cargo/script-cache/file-q-2363294a81e39875/q.rs", _, Some("15edae7aaf80364a544e058838e2c8db48c65244"))
DEBUG:cargo_script: .. hashes differ; new_hash: "6e252414753715d531be2e821dc5ab9ab12a48ed"
INFO:cargo_script: compiling...
   Compiling q v0.1.0 (file:///home/vi/.cargo/script-cache/file-q-2363294a81e39875)
    Finished release [optimized] target(s) in 1.2 secs
INFO:cargo_script: writing meta hash: "479ea4d984160be6e7954a5ae4e1e0df9c75d9c3"...
INFO:cargo_script: emitting metadata...
DEBUG:cargo_script: meta_path: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875/metadata.json"
INFO:cargo_script: disarming pkg dir cleanup...
INFO:cargo_script: executing "/home/vi/.cargo/binary-cache/release/q"
4
INFO:cargo_script: cleaning cache with max_age: 604800000
INFO:cargo_script: cutoff:            1475366175148 ms
INFO:cargo_script: checking: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875"
INFO:cargo_script: meta_mtime:        1475970975000 ms
INFO:cargo_script: done cleaning cache.
date=1475970975.154843831$ RUST_LOG=cargo_script=debug cargo-script script q
INFO:cargo_script: starting
INFO:cargo_script: args: ["cargo-script", "script", "q"]
INFO:cargo_script: Arguments: Args { script: Some("q"), args: [], features: None, expr: false, loop_: false, count: false, pkg_path: None, gen_pkg_only: false, build_only: false, clear_cache: false, debug: false, dep: [], dep_extern: [], extern_: [], force: false, unstable_features: [], use_bincache: None }
INFO:cargo_script: input: File("q", "/tmp/cs/q", "use std::fs::File;use std::io::Write;fn main(){let c=5;\n    let mut v = vec![];\n    ::std::io::Read::read_to_end(&mut File::open(\"q\").unwrap(),&mut v).unwrap();\n    let mut q = &mut File::create(\"q\").unwrap();\n    q.write(&v[..53]).unwrap();\n    q.write(format!(\"{}\",c+1).as_bytes()).unwrap();\n    q.write(&v[54..]).unwrap();\n    println!(\"{}\", c);\n}\n", 1475970975000)
INFO:cargo_script: deps: []
INFO:cargo_script: prelude_items: []
INFO:cargo_script: cache_path: "/home/vi/.cargo/script-cache"
INFO:cargo_script: id: "file-q-2363294a81e39875"
INFO:cargo_script: pkg_path: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875"
INFO:cargo_script: using_cache: true
INFO:cargo_script: splitting input...
INFO:cargo_script::manifest: splitting because of marker '"use "'
INFO:cargo_script::manifest: part_mani: Toml("")
INFO:cargo_script::manifest: source: "use std::fs::File;use std::io::Write;fn main(){let c=5;\n    let mut v = vec![];\n    ::std::io::Read::read_to_end(&mut File::open(\"q\").unwrap(),&mut v).unwrap();\n    let mut q = &mut File::create(\"q\").unwrap();\n    q.write(&v[..53]).unwrap();\n    q.write(format!(\"{}\",c+1).as_bytes()).unwrap();\n    q.write(&v[54..]).unwrap();\n    println!(\"{}\", c);\n}\n"
INFO:cargo_script::manifest: part_mani: {}
INFO:cargo_script::manifest: mani: {"bin": Array([Table({"name": String("q"), "path": String("q.rs")})]), "dependencies": Table({}), "package": Table({"authors": Array([String("Anonymous")]), "name": String("q"), "version": String("0.1.0")})}
INFO:cargo_script::manifest: mani_str: 
[[bin]]
name = "q"
path = "q.rs"

[dependencies]

[package]
authors = ["Anonymous"]
name = "q"
version = "0.1.0"

INFO:cargo_script: input_meta: PackageMetadata { path: Some("/tmp/cs/q"), modified: Some(1475970975000), debug: false, deps: [], prelude: [], features: None, manifest_hash: "381c27ee0ce4e79268ed7ec8ae93ef5d1042d862", script_hash: "56697bc8a3159d190243654b8646a1a82702523e" }
DEBUG:cargo_script: meta_path: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875/metadata.json"
INFO:cargo_script: recompiling because: metadata did not match
DEBUG:cargo_script: input metadata: PackageMetadata { path: Some("/tmp/cs/q"), modified: Some(1475970975000), debug: false, deps: [], prelude: [], features: None, manifest_hash: "381c27ee0ce4e79268ed7ec8ae93ef5d1042d862", script_hash: "56697bc8a3159d190243654b8646a1a82702523e" }
DEBUG:cargo_script: cache metadata: PackageMetadata { path: Some("/tmp/cs/q"), modified: Some(1475970972000), debug: false, deps: [], prelude: [], features: None, manifest_hash: "381c27ee0ce4e79268ed7ec8ae93ef5d1042d862", script_hash: "6e252414753715d531be2e821dc5ab9ab12a48ed" }
INFO:cargo_script: action: InputAction { compile: true, force_compile: false, emit_metadata: true, execute: true, pkg_path: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875", using_cache: true, use_bincache: true, metadata: PackageMetadata { path: Some("/tmp/cs/q"), modified: Some(1475970975000), debug: false, deps: [], prelude: [], features: None, manifest_hash: "381c27ee0ce4e79268ed7ec8ae93ef5d1042d862", script_hash: "56697bc8a3159d190243654b8646a1a82702523e" }, old_metadata: Some(PackageMetadata { path: Some("/tmp/cs/q"), modified: Some(1475970972000), debug: false, deps: [], prelude: [], features: None, manifest_hash: "381c27ee0ce4e79268ed7ec8ae93ef5d1042d862", script_hash: "6e252414753715d531be2e821dc5ab9ab12a48ed" }), manifest: "\n[[bin]]\nname = \"q\"\npath = \"q.rs\"\n\n[dependencies]\n\n[package]\nauthors = [\"Anonymous\"]\nname = \"q\"\nversion = \"0.1.0\"\n", script: "use std::fs::File;use std::io::Write;fn main(){let c=5;\n    let mut v = vec![];\n    ::std::io::Read::read_to_end(&mut File::open(\"q\").unwrap(),&mut v).unwrap();\n    let mut q = &mut File::create(\"q\").unwrap();\n    q.write(&v[..53]).unwrap();\n    q.write(format!(\"{}\",c+1).as_bytes()).unwrap();\n    q.write(&v[54..]).unwrap();\n    println!(\"{}\", c);\n}\n" }
INFO:cargo_script: creating pkg dir...
INFO:cargo_script: generating Cargo package...
DEBUG:cargo_script: overwrite_file("/home/vi/.cargo/script-cache/file-q-2363294a81e39875/Cargo.toml", _, Some("381c27ee0ce4e79268ed7ec8ae93ef5d1042d862"))
DEBUG:cargo_script: .. hashes match
DEBUG:cargo_script: overwrite_file("/home/vi/.cargo/script-cache/file-q-2363294a81e39875/q.rs", _, Some("6e252414753715d531be2e821dc5ab9ab12a48ed"))
DEBUG:cargo_script: .. hashes differ; new_hash: "56697bc8a3159d190243654b8646a1a82702523e"
INFO:cargo_script: compiling...
   Compiling q v0.1.0 (file:///home/vi/.cargo/script-cache/file-q-2363294a81e39875)
    Finished release [optimized] target(s) in 1.1 secs
INFO:cargo_script: writing meta hash: "59a39dfddb2f21121eed882495c20b2f38e44b55"...
INFO:cargo_script: emitting metadata...
DEBUG:cargo_script: meta_path: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875/metadata.json"
INFO:cargo_script: disarming pkg dir cleanup...
INFO:cargo_script: executing "/home/vi/.cargo/binary-cache/release/q"
5
INFO:cargo_script: cleaning cache with max_age: 604800000
INFO:cargo_script: cutoff:            1475366178797 ms
INFO:cargo_script: checking: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875"
INFO:cargo_script: meta_mtime:        1475970978000 ms
INFO:cargo_script: done cleaning cache.
date=1475970978.805149626$ RUST_LOG=cargo_script=debug cargo-script script q
INFO:cargo_script: starting
INFO:cargo_script: args: ["cargo-script", "script", "q"]
INFO:cargo_script: Arguments: Args { script: Some("q"), args: [], features: None, expr: false, loop_: false, count: false, pkg_path: None, gen_pkg_only: false, build_only: false, clear_cache: false, debug: false, dep: [], dep_extern: [], extern_: [], force: false, unstable_features: [], use_bincache: None }
INFO:cargo_script: input: File("q", "/tmp/cs/q", "use std::fs::File;use std::io::Write;fn main(){let c=6;\n    let mut v = vec![];\n    ::std::io::Read::read_to_end(&mut File::open(\"q\").unwrap(),&mut v).unwrap();\n    let mut q = &mut File::create(\"q\").unwrap();\n    q.write(&v[..53]).unwrap();\n    q.write(format!(\"{}\",c+1).as_bytes()).unwrap();\n    q.write(&v[54..]).unwrap();\n    println!(\"{}\", c);\n}\n", 1475970978000)
INFO:cargo_script: deps: []
INFO:cargo_script: prelude_items: []
INFO:cargo_script: cache_path: "/home/vi/.cargo/script-cache"
INFO:cargo_script: id: "file-q-2363294a81e39875"
INFO:cargo_script: pkg_path: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875"
INFO:cargo_script: using_cache: true
INFO:cargo_script: splitting input...
INFO:cargo_script::manifest: splitting because of marker '"use "'
INFO:cargo_script::manifest: part_mani: Toml("")
INFO:cargo_script::manifest: source: "use std::fs::File;use std::io::Write;fn main(){let c=6;\n    let mut v = vec![];\n    ::std::io::Read::read_to_end(&mut File::open(\"q\").unwrap(),&mut v).unwrap();\n    let mut q = &mut File::create(\"q\").unwrap();\n    q.write(&v[..53]).unwrap();\n    q.write(format!(\"{}\",c+1).as_bytes()).unwrap();\n    q.write(&v[54..]).unwrap();\n    println!(\"{}\", c);\n}\n"
INFO:cargo_script::manifest: part_mani: {}
INFO:cargo_script::manifest: mani: {"bin": Array([Table({"name": String("q"), "path": String("q.rs")})]), "dependencies": Table({}), "package": Table({"authors": Array([String("Anonymous")]), "name": String("q"), "version": String("0.1.0")})}
INFO:cargo_script::manifest: mani_str: 
[[bin]]
name = "q"
path = "q.rs"

[dependencies]

[package]
authors = ["Anonymous"]
name = "q"
version = "0.1.0"

INFO:cargo_script: input_meta: PackageMetadata { path: Some("/tmp/cs/q"), modified: Some(1475970978000), debug: false, deps: [], prelude: [], features: None, manifest_hash: "381c27ee0ce4e79268ed7ec8ae93ef5d1042d862", script_hash: "84cafd17c7877d594fe318c543782c2ecea299f3" }
DEBUG:cargo_script: meta_path: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875/metadata.json"
INFO:cargo_script: recompiling because: metadata did not match
DEBUG:cargo_script: input metadata: PackageMetadata { path: Some("/tmp/cs/q"), modified: Some(1475970978000), debug: false, deps: [], prelude: [], features: None, manifest_hash: "381c27ee0ce4e79268ed7ec8ae93ef5d1042d862", script_hash: "84cafd17c7877d594fe318c543782c2ecea299f3" }
DEBUG:cargo_script: cache metadata: PackageMetadata { path: Some("/tmp/cs/q"), modified: Some(1475970975000), debug: false, deps: [], prelude: [], features: None, manifest_hash: "381c27ee0ce4e79268ed7ec8ae93ef5d1042d862", script_hash: "56697bc8a3159d190243654b8646a1a82702523e" }
INFO:cargo_script: action: InputAction { compile: true, force_compile: false, emit_metadata: true, execute: true, pkg_path: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875", using_cache: true, use_bincache: true, metadata: PackageMetadata { path: Some("/tmp/cs/q"), modified: Some(1475970978000), debug: false, deps: [], prelude: [], features: None, manifest_hash: "381c27ee0ce4e79268ed7ec8ae93ef5d1042d862", script_hash: "84cafd17c7877d594fe318c543782c2ecea299f3" }, old_metadata: Some(PackageMetadata { path: Some("/tmp/cs/q"), modified: Some(1475970975000), debug: false, deps: [], prelude: [], features: None, manifest_hash: "381c27ee0ce4e79268ed7ec8ae93ef5d1042d862", script_hash: "56697bc8a3159d190243654b8646a1a82702523e" }), manifest: "\n[[bin]]\nname = \"q\"\npath = \"q.rs\"\n\n[dependencies]\n\n[package]\nauthors = [\"Anonymous\"]\nname = \"q\"\nversion = \"0.1.0\"\n", script: "use std::fs::File;use std::io::Write;fn main(){let c=6;\n    let mut v = vec![];\n    ::std::io::Read::read_to_end(&mut File::open(\"q\").unwrap(),&mut v).unwrap();\n    let mut q = &mut File::create(\"q\").unwrap();\n    q.write(&v[..53]).unwrap();\n    q.write(format!(\"{}\",c+1).as_bytes()).unwrap();\n    q.write(&v[54..]).unwrap();\n    println!(\"{}\", c);\n}\n" }
INFO:cargo_script: creating pkg dir...
INFO:cargo_script: generating Cargo package...
DEBUG:cargo_script: overwrite_file("/home/vi/.cargo/script-cache/file-q-2363294a81e39875/Cargo.toml", _, Some("381c27ee0ce4e79268ed7ec8ae93ef5d1042d862"))
DEBUG:cargo_script: .. hashes match
DEBUG:cargo_script: overwrite_file("/home/vi/.cargo/script-cache/file-q-2363294a81e39875/q.rs", _, Some("56697bc8a3159d190243654b8646a1a82702523e"))
DEBUG:cargo_script: .. hashes differ; new_hash: "84cafd17c7877d594fe318c543782c2ecea299f3"
INFO:cargo_script: compiling...
   Compiling q v0.1.0 (file:///home/vi/.cargo/script-cache/file-q-2363294a81e39875)
    Finished release [optimized] target(s) in 1.3 secs
INFO:cargo_script: writing meta hash: "32520a8c3ca16ec62922265eb80538e1aba611d7"...
INFO:cargo_script: emitting metadata...
DEBUG:cargo_script: meta_path: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875/metadata.json"
INFO:cargo_script: disarming pkg dir cleanup...
INFO:cargo_script: executing "/home/vi/.cargo/binary-cache/release/q"
6
INFO:cargo_script: cleaning cache with max_age: 604800000
INFO:cargo_script: cutoff:            1475366180910 ms
INFO:cargo_script: checking: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875"
INFO:cargo_script: meta_mtime:        1475970980000 ms
INFO:cargo_script: done cleaning cache.
date=1475970980.926071281$ RUST_LOG=cargo_script=debug cargo-script script q
INFO:cargo_script: starting
INFO:cargo_script: args: ["cargo-script", "script", "q"]
INFO:cargo_script: Arguments: Args { script: Some("q"), args: [], features: None, expr: false, loop_: false, count: false, pkg_path: None, gen_pkg_only: false, build_only: false, clear_cache: false, debug: false, dep: [], dep_extern: [], extern_: [], force: false, unstable_features: [], use_bincache: None }
INFO:cargo_script: input: File("q", "/tmp/cs/q", "use std::fs::File;use std::io::Write;fn main(){let c=7;\n    let mut v = vec![];\n    ::std::io::Read::read_to_end(&mut File::open(\"q\").unwrap(),&mut v).unwrap();\n    let mut q = &mut File::create(\"q\").unwrap();\n    q.write(&v[..53]).unwrap();\n    q.write(format!(\"{}\",c+1).as_bytes()).unwrap();\n    q.write(&v[54..]).unwrap();\n    println!(\"{}\", c);\n}\n", 1475970980000)
INFO:cargo_script: deps: []
INFO:cargo_script: prelude_items: []
INFO:cargo_script: cache_path: "/home/vi/.cargo/script-cache"
INFO:cargo_script: id: "file-q-2363294a81e39875"
INFO:cargo_script: pkg_path: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875"
INFO:cargo_script: using_cache: true
INFO:cargo_script: splitting input...
INFO:cargo_script::manifest: splitting because of marker '"use "'
INFO:cargo_script::manifest: part_mani: Toml("")
INFO:cargo_script::manifest: source: "use std::fs::File;use std::io::Write;fn main(){let c=7;\n    let mut v = vec![];\n    ::std::io::Read::read_to_end(&mut File::open(\"q\").unwrap(),&mut v).unwrap();\n    let mut q = &mut File::create(\"q\").unwrap();\n    q.write(&v[..53]).unwrap();\n    q.write(format!(\"{}\",c+1).as_bytes()).unwrap();\n    q.write(&v[54..]).unwrap();\n    println!(\"{}\", c);\n}\n"
INFO:cargo_script::manifest: part_mani: {}
INFO:cargo_script::manifest: mani: {"bin": Array([Table({"name": String("q"), "path": String("q.rs")})]), "dependencies": Table({}), "package": Table({"authors": Array([String("Anonymous")]), "name": String("q"), "version": String("0.1.0")})}
INFO:cargo_script::manifest: mani_str: 
[[bin]]
name = "q"
path = "q.rs"

[dependencies]

[package]
authors = ["Anonymous"]
name = "q"
version = "0.1.0"

INFO:cargo_script: input_meta: PackageMetadata { path: Some("/tmp/cs/q"), modified: Some(1475970980000), debug: false, deps: [], prelude: [], features: None, manifest_hash: "381c27ee0ce4e79268ed7ec8ae93ef5d1042d862", script_hash: "54bb70be23b8fa22f7ba3780b9c33fa2555adfc1" }
DEBUG:cargo_script: meta_path: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875/metadata.json"
INFO:cargo_script: recompiling because: metadata did not match
DEBUG:cargo_script: input metadata: PackageMetadata { path: Some("/tmp/cs/q"), modified: Some(1475970980000), debug: false, deps: [], prelude: [], features: None, manifest_hash: "381c27ee0ce4e79268ed7ec8ae93ef5d1042d862", script_hash: "54bb70be23b8fa22f7ba3780b9c33fa2555adfc1" }
DEBUG:cargo_script: cache metadata: PackageMetadata { path: Some("/tmp/cs/q"), modified: Some(1475970978000), debug: false, deps: [], prelude: [], features: None, manifest_hash: "381c27ee0ce4e79268ed7ec8ae93ef5d1042d862", script_hash: "84cafd17c7877d594fe318c543782c2ecea299f3" }
INFO:cargo_script: action: InputAction { compile: true, force_compile: false, emit_metadata: true, execute: true, pkg_path: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875", using_cache: true, use_bincache: true, metadata: PackageMetadata { path: Some("/tmp/cs/q"), modified: Some(1475970980000), debug: false, deps: [], prelude: [], features: None, manifest_hash: "381c27ee0ce4e79268ed7ec8ae93ef5d1042d862", script_hash: "54bb70be23b8fa22f7ba3780b9c33fa2555adfc1" }, old_metadata: Some(PackageMetadata { path: Some("/tmp/cs/q"), modified: Some(1475970978000), debug: false, deps: [], prelude: [], features: None, manifest_hash: "381c27ee0ce4e79268ed7ec8ae93ef5d1042d862", script_hash: "84cafd17c7877d594fe318c543782c2ecea299f3" }), manifest: "\n[[bin]]\nname = \"q\"\npath = \"q.rs\"\n\n[dependencies]\n\n[package]\nauthors = [\"Anonymous\"]\nname = \"q\"\nversion = \"0.1.0\"\n", script: "use std::fs::File;use std::io::Write;fn main(){let c=7;\n    let mut v = vec![];\n    ::std::io::Read::read_to_end(&mut File::open(\"q\").unwrap(),&mut v).unwrap();\n    let mut q = &mut File::create(\"q\").unwrap();\n    q.write(&v[..53]).unwrap();\n    q.write(format!(\"{}\",c+1).as_bytes()).unwrap();\n    q.write(&v[54..]).unwrap();\n    println!(\"{}\", c);\n}\n" }
INFO:cargo_script: creating pkg dir...
INFO:cargo_script: generating Cargo package...
DEBUG:cargo_script: overwrite_file("/home/vi/.cargo/script-cache/file-q-2363294a81e39875/Cargo.toml", _, Some("381c27ee0ce4e79268ed7ec8ae93ef5d1042d862"))
DEBUG:cargo_script: .. hashes match
DEBUG:cargo_script: overwrite_file("/home/vi/.cargo/script-cache/file-q-2363294a81e39875/q.rs", _, Some("84cafd17c7877d594fe318c543782c2ecea299f3"))
DEBUG:cargo_script: .. hashes differ; new_hash: "54bb70be23b8fa22f7ba3780b9c33fa2555adfc1"
INFO:cargo_script: compiling...
   Compiling q v0.1.0 (file:///home/vi/.cargo/script-cache/file-q-2363294a81e39875)
    Finished release [optimized] target(s) in 1.11 secs
INFO:cargo_script: writing meta hash: "281c91f461c461049a27c6bf94e19a9d781264a5"...
INFO:cargo_script: emitting metadata...
DEBUG:cargo_script: meta_path: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875/metadata.json"
INFO:cargo_script: disarming pkg dir cleanup...
INFO:cargo_script: executing "/home/vi/.cargo/binary-cache/release/q"
7
INFO:cargo_script: cleaning cache with max_age: 604800000
INFO:cargo_script: cutoff:            1475366182991 ms
INFO:cargo_script: checking: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875"
INFO:cargo_script: meta_mtime:        1475970982000 ms
INFO:cargo_script: done cleaning cache.
date=1475970983.000531055$ RUST_LOG=cargo_script=debug cargo-script script q
INFO:cargo_script: starting
INFO:cargo_script: args: ["cargo-script", "script", "q"]
INFO:cargo_script: Arguments: Args { script: Some("q"), args: [], features: None, expr: false, loop_: false, count: false, pkg_path: None, gen_pkg_only: false, build_only: false, clear_cache: false, debug: false, dep: [], dep_extern: [], extern_: [], force: false, unstable_features: [], use_bincache: None }
INFO:cargo_script: input: File("q", "/tmp/cs/q", "use std::fs::File;use std::io::Write;fn main(){let c=8;\n    let mut v = vec![];\n    ::std::io::Read::read_to_end(&mut File::open(\"q\").unwrap(),&mut v).unwrap();\n    let mut q = &mut File::create(\"q\").unwrap();\n    q.write(&v[..53]).unwrap();\n    q.write(format!(\"{}\",c+1).as_bytes()).unwrap();\n    q.write(&v[54..]).unwrap();\n    println!(\"{}\", c);\n}\n", 1475970982000)
INFO:cargo_script: deps: []
INFO:cargo_script: prelude_items: []
INFO:cargo_script: cache_path: "/home/vi/.cargo/script-cache"
INFO:cargo_script: id: "file-q-2363294a81e39875"
INFO:cargo_script: pkg_path: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875"
INFO:cargo_script: using_cache: true
INFO:cargo_script: splitting input...
INFO:cargo_script::manifest: splitting because of marker '"use "'
INFO:cargo_script::manifest: part_mani: Toml("")
INFO:cargo_script::manifest: source: "use std::fs::File;use std::io::Write;fn main(){let c=8;\n    let mut v = vec![];\n    ::std::io::Read::read_to_end(&mut File::open(\"q\").unwrap(),&mut v).unwrap();\n    let mut q = &mut File::create(\"q\").unwrap();\n    q.write(&v[..53]).unwrap();\n    q.write(format!(\"{}\",c+1).as_bytes()).unwrap();\n    q.write(&v[54..]).unwrap();\n    println!(\"{}\", c);\n}\n"
INFO:cargo_script::manifest: part_mani: {}
INFO:cargo_script::manifest: mani: {"bin": Array([Table({"name": String("q"), "path": String("q.rs")})]), "dependencies": Table({}), "package": Table({"authors": Array([String("Anonymous")]), "name": String("q"), "version": String("0.1.0")})}
INFO:cargo_script::manifest: mani_str: 
[[bin]]
name = "q"
path = "q.rs"

[dependencies]

[package]
authors = ["Anonymous"]
name = "q"
version = "0.1.0"

INFO:cargo_script: input_meta: PackageMetadata { path: Some("/tmp/cs/q"), modified: Some(1475970982000), debug: false, deps: [], prelude: [], features: None, manifest_hash: "381c27ee0ce4e79268ed7ec8ae93ef5d1042d862", script_hash: "3a85518d0409a242cabc3b40a3121adb2dd22755" }
DEBUG:cargo_script: meta_path: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875/metadata.json"
INFO:cargo_script: recompiling because: metadata did not match
DEBUG:cargo_script: input metadata: PackageMetadata { path: Some("/tmp/cs/q"), modified: Some(1475970982000), debug: false, deps: [], prelude: [], features: None, manifest_hash: "381c27ee0ce4e79268ed7ec8ae93ef5d1042d862", script_hash: "3a85518d0409a242cabc3b40a3121adb2dd22755" }
DEBUG:cargo_script: cache metadata: PackageMetadata { path: Some("/tmp/cs/q"), modified: Some(1475970980000), debug: false, deps: [], prelude: [], features: None, manifest_hash: "381c27ee0ce4e79268ed7ec8ae93ef5d1042d862", script_hash: "54bb70be23b8fa22f7ba3780b9c33fa2555adfc1" }
INFO:cargo_script: action: InputAction { compile: true, force_compile: false, emit_metadata: true, execute: true, pkg_path: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875", using_cache: true, use_bincache: true, metadata: PackageMetadata { path: Some("/tmp/cs/q"), modified: Some(1475970982000), debug: false, deps: [], prelude: [], features: None, manifest_hash: "381c27ee0ce4e79268ed7ec8ae93ef5d1042d862", script_hash: "3a85518d0409a242cabc3b40a3121adb2dd22755" }, old_metadata: Some(PackageMetadata { path: Some("/tmp/cs/q"), modified: Some(1475970980000), debug: false, deps: [], prelude: [], features: None, manifest_hash: "381c27ee0ce4e79268ed7ec8ae93ef5d1042d862", script_hash: "54bb70be23b8fa22f7ba3780b9c33fa2555adfc1" }), manifest: "\n[[bin]]\nname = \"q\"\npath = \"q.rs\"\n\n[dependencies]\n\n[package]\nauthors = [\"Anonymous\"]\nname = \"q\"\nversion = \"0.1.0\"\n", script: "use std::fs::File;use std::io::Write;fn main(){let c=8;\n    let mut v = vec![];\n    ::std::io::Read::read_to_end(&mut File::open(\"q\").unwrap(),&mut v).unwrap();\n    let mut q = &mut File::create(\"q\").unwrap();\n    q.write(&v[..53]).unwrap();\n    q.write(format!(\"{}\",c+1).as_bytes()).unwrap();\n    q.write(&v[54..]).unwrap();\n    println!(\"{}\", c);\n}\n" }
INFO:cargo_script: creating pkg dir...
INFO:cargo_script: generating Cargo package...
DEBUG:cargo_script: overwrite_file("/home/vi/.cargo/script-cache/file-q-2363294a81e39875/Cargo.toml", _, Some("381c27ee0ce4e79268ed7ec8ae93ef5d1042d862"))
DEBUG:cargo_script: .. hashes match
DEBUG:cargo_script: overwrite_file("/home/vi/.cargo/script-cache/file-q-2363294a81e39875/q.rs", _, Some("54bb70be23b8fa22f7ba3780b9c33fa2555adfc1"))
DEBUG:cargo_script: .. hashes differ; new_hash: "3a85518d0409a242cabc3b40a3121adb2dd22755"
INFO:cargo_script: compiling...
   Compiling q v0.1.0 (file:///home/vi/.cargo/script-cache/file-q-2363294a81e39875)
^[[A
    Finished release [optimized] target(s) in 1.10 secs
INFO:cargo_script: writing meta hash: "b0d32829672baeb14ca73d39ffe80a8d4e88da39"...
INFO:cargo_script: emitting metadata...
DEBUG:cargo_script: meta_path: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875/metadata.json"
INFO:cargo_script: disarming pkg dir cleanup...
INFO:cargo_script: executing "/home/vi/.cargo/binary-cache/release/q"
8
INFO:cargo_script: cleaning cache with max_age: 604800000
INFO:cargo_script: cutoff:            1475366185066 ms
INFO:cargo_script: checking: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875"
INFO:cargo_script: meta_mtime:        1475970985000 ms
INFO:cargo_script: done cleaning cache.
date=1475970985.070820140$ RUST_LOG=cargo_script=debug cargo-script script q
INFO:cargo_script: starting
INFO:cargo_script: args: ["cargo-script", "script", "q"]
INFO:cargo_script: Arguments: Args { script: Some("q"), args: [], features: None, expr: false, loop_: false, count: false, pkg_path: None, gen_pkg_only: false, build_only: false, clear_cache: false, debug: false, dep: [], dep_extern: [], extern_: [], force: false, unstable_features: [], use_bincache: None }
INFO:cargo_script: input: File("q", "/tmp/cs/q", "use std::fs::File;use std::io::Write;fn main(){let c=9;\n    let mut v = vec![];\n    ::std::io::Read::read_to_end(&mut File::open(\"q\").unwrap(),&mut v).unwrap();\n    let mut q = &mut File::create(\"q\").unwrap();\n    q.write(&v[..53]).unwrap();\n    q.write(format!(\"{}\",c+1).as_bytes()).unwrap();\n    q.write(&v[54..]).unwrap();\n    println!(\"{}\", c);\n}\n", 1475970985000)
INFO:cargo_script: deps: []
INFO:cargo_script: prelude_items: []
INFO:cargo_script: cache_path: "/home/vi/.cargo/script-cache"
INFO:cargo_script: id: "file-q-2363294a81e39875"
INFO:cargo_script: pkg_path: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875"
INFO:cargo_script: using_cache: true
INFO:cargo_script: splitting input...
INFO:cargo_script::manifest: splitting because of marker '"use "'
INFO:cargo_script::manifest: part_mani: Toml("")
INFO:cargo_script::manifest: source: "use std::fs::File;use std::io::Write;fn main(){let c=9;\n    let mut v = vec![];\n    ::std::io::Read::read_to_end(&mut File::open(\"q\").unwrap(),&mut v).unwrap();\n    let mut q = &mut File::create(\"q\").unwrap();\n    q.write(&v[..53]).unwrap();\n    q.write(format!(\"{}\",c+1).as_bytes()).unwrap();\n    q.write(&v[54..]).unwrap();\n    println!(\"{}\", c);\n}\n"
INFO:cargo_script::manifest: part_mani: {}
INFO:cargo_script::manifest: mani: {"bin": Array([Table({"name": String("q"), "path": String("q.rs")})]), "dependencies": Table({}), "package": Table({"authors": Array([String("Anonymous")]), "name": String("q"), "version": String("0.1.0")})}
INFO:cargo_script::manifest: mani_str: 
[[bin]]
name = "q"
path = "q.rs"

[dependencies]

[package]
authors = ["Anonymous"]
name = "q"
version = "0.1.0"

INFO:cargo_script: input_meta: PackageMetadata { path: Some("/tmp/cs/q"), modified: Some(1475970985000), debug: false, deps: [], prelude: [], features: None, manifest_hash: "381c27ee0ce4e79268ed7ec8ae93ef5d1042d862", script_hash: "724af5bf73736d10cdfa2018f54f6ea1caaad491" }
DEBUG:cargo_script: meta_path: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875/metadata.json"
INFO:cargo_script: recompiling because: metadata did not match
DEBUG:cargo_script: input metadata: PackageMetadata { path: Some("/tmp/cs/q"), modified: Some(1475970985000), debug: false, deps: [], prelude: [], features: None, manifest_hash: "381c27ee0ce4e79268ed7ec8ae93ef5d1042d862", script_hash: "724af5bf73736d10cdfa2018f54f6ea1caaad491" }
DEBUG:cargo_script: cache metadata: PackageMetadata { path: Some("/tmp/cs/q"), modified: Some(1475970982000), debug: false, deps: [], prelude: [], features: None, manifest_hash: "381c27ee0ce4e79268ed7ec8ae93ef5d1042d862", script_hash: "3a85518d0409a242cabc3b40a3121adb2dd22755" }
INFO:cargo_script: action: InputAction { compile: true, force_compile: false, emit_metadata: true, execute: true, pkg_path: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875", using_cache: true, use_bincache: true, metadata: PackageMetadata { path: Some("/tmp/cs/q"), modified: Some(1475970985000), debug: false, deps: [], prelude: [], features: None, manifest_hash: "381c27ee0ce4e79268ed7ec8ae93ef5d1042d862", script_hash: "724af5bf73736d10cdfa2018f54f6ea1caaad491" }, old_metadata: Some(PackageMetadata { path: Some("/tmp/cs/q"), modified: Some(1475970982000), debug: false, deps: [], prelude: [], features: None, manifest_hash: "381c27ee0ce4e79268ed7ec8ae93ef5d1042d862", script_hash: "3a85518d0409a242cabc3b40a3121adb2dd22755" }), manifest: "\n[[bin]]\nname = \"q\"\npath = \"q.rs\"\n\n[dependencies]\n\n[package]\nauthors = [\"Anonymous\"]\nname = \"q\"\nversion = \"0.1.0\"\n", script: "use std::fs::File;use std::io::Write;fn main(){let c=9;\n    let mut v = vec![];\n    ::std::io::Read::read_to_end(&mut File::open(\"q\").unwrap(),&mut v).unwrap();\n    let mut q = &mut File::create(\"q\").unwrap();\n    q.write(&v[..53]).unwrap();\n    q.write(format!(\"{}\",c+1).as_bytes()).unwrap();\n    q.write(&v[54..]).unwrap();\n    println!(\"{}\", c);\n}\n" }
INFO:cargo_script: creating pkg dir...
INFO:cargo_script: generating Cargo package...
DEBUG:cargo_script: overwrite_file("/home/vi/.cargo/script-cache/file-q-2363294a81e39875/Cargo.toml", _, Some("381c27ee0ce4e79268ed7ec8ae93ef5d1042d862"))
DEBUG:cargo_script: .. hashes match
DEBUG:cargo_script: overwrite_file("/home/vi/.cargo/script-cache/file-q-2363294a81e39875/q.rs", _, Some("3a85518d0409a242cabc3b40a3121adb2dd22755"))
DEBUG:cargo_script: .. hashes differ; new_hash: "724af5bf73736d10cdfa2018f54f6ea1caaad491"
INFO:cargo_script: compiling...
    Finished release [optimized] target(s) in 0.0 secs
INFO:cargo_script: writing meta hash: "4296d35705411cdacd7d42ce504ed33471049601"...
INFO:cargo_script: emitting metadata...
DEBUG:cargo_script: meta_path: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875/metadata.json"
INFO:cargo_script: disarming pkg dir cleanup...
INFO:cargo_script: executing "/home/vi/.cargo/binary-cache/release/q"
8
INFO:cargo_script: cleaning cache with max_age: 604800000
INFO:cargo_script: cutoff:            1475366185640 ms
INFO:cargo_script: checking: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875"
INFO:cargo_script: meta_mtime:        1475970985000 ms
INFO:cargo_script: done cleaning cache.
date=1475970985.647933433$ RUST_LOG=cargo_script=debug cargo-script script q
INFO:cargo_script: starting
INFO:cargo_script: args: ["cargo-script", "script", "q"]
INFO:cargo_script: Arguments: Args { script: Some("q"), args: [], features: None, expr: false, loop_: false, count: false, pkg_path: None, gen_pkg_only: false, build_only: false, clear_cache: false, debug: false, dep: [], dep_extern: [], extern_: [], force: false, unstable_features: [], use_bincache: None }
INFO:cargo_script: input: File("q", "/tmp/cs/q", "use std::fs::File;use std::io::Write;fn main(){let c=9;\n    let mut v = vec![];\n    ::std::io::Read::read_to_end(&mut File::open(\"q\").unwrap(),&mut v).unwrap();\n    let mut q = &mut File::create(\"q\").unwrap();\n    q.write(&v[..53]).unwrap();\n    q.write(format!(\"{}\",c+1).as_bytes()).unwrap();\n    q.write(&v[54..]).unwrap();\n    println!(\"{}\", c);\n}\n", 1475970985000)
INFO:cargo_script: deps: []
INFO:cargo_script: prelude_items: []
INFO:cargo_script: cache_path: "/home/vi/.cargo/script-cache"
INFO:cargo_script: id: "file-q-2363294a81e39875"
INFO:cargo_script: pkg_path: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875"
INFO:cargo_script: using_cache: true
INFO:cargo_script: splitting input...
INFO:cargo_script::manifest: splitting because of marker '"use "'
INFO:cargo_script::manifest: part_mani: Toml("")
INFO:cargo_script::manifest: source: "use std::fs::File;use std::io::Write;fn main(){let c=9;\n    let mut v = vec![];\n    ::std::io::Read::read_to_end(&mut File::open(\"q\").unwrap(),&mut v).unwrap();\n    let mut q = &mut File::create(\"q\").unwrap();\n    q.write(&v[..53]).unwrap();\n    q.write(format!(\"{}\",c+1).as_bytes()).unwrap();\n    q.write(&v[54..]).unwrap();\n    println!(\"{}\", c);\n}\n"
INFO:cargo_script::manifest: part_mani: {}
INFO:cargo_script::manifest: mani: {"bin": Array([Table({"name": String("q"), "path": String("q.rs")})]), "dependencies": Table({}), "package": Table({"authors": Array([String("Anonymous")]), "name": String("q"), "version": String("0.1.0")})}
INFO:cargo_script::manifest: mani_str: 
[[bin]]
name = "q"
path = "q.rs"

[dependencies]

[package]
authors = ["Anonymous"]
name = "q"
version = "0.1.0"

INFO:cargo_script: input_meta: PackageMetadata { path: Some("/tmp/cs/q"), modified: Some(1475970985000), debug: false, deps: [], prelude: [], features: None, manifest_hash: "381c27ee0ce4e79268ed7ec8ae93ef5d1042d862", script_hash: "724af5bf73736d10cdfa2018f54f6ea1caaad491" }
DEBUG:cargo_script: meta_path: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875/metadata.json"
INFO:cargo_script: action: InputAction { compile: false, force_compile: false, emit_metadata: true, execute: true, pkg_path: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875", using_cache: true, use_bincache: true, metadata: PackageMetadata { path: Some("/tmp/cs/q"), modified: Some(1475970985000), debug: false, deps: [], prelude: [], features: None, manifest_hash: "381c27ee0ce4e79268ed7ec8ae93ef5d1042d862", script_hash: "724af5bf73736d10cdfa2018f54f6ea1caaad491" }, old_metadata: Some(PackageMetadata { path: Some("/tmp/cs/q"), modified: Some(1475970985000), debug: false, deps: [], prelude: [], features: None, manifest_hash: "381c27ee0ce4e79268ed7ec8ae93ef5d1042d862", script_hash: "724af5bf73736d10cdfa2018f54f6ea1caaad491" }), manifest: "\n[[bin]]\nname = \"q\"\npath = \"q.rs\"\n\n[dependencies]\n\n[package]\nauthors = [\"Anonymous\"]\nname = \"q\"\nversion = \"0.1.0\"\n", script: "use std::fs::File;use std::io::Write;fn main(){let c=9;\n    let mut v = vec![];\n    ::std::io::Read::read_to_end(&mut File::open(\"q\").unwrap(),&mut v).unwrap();\n    let mut q = &mut File::create(\"q\").unwrap();\n    q.write(&v[..53]).unwrap();\n    q.write(format!(\"{}\",c+1).as_bytes()).unwrap();\n    q.write(&v[54..]).unwrap();\n    println!(\"{}\", c);\n}\n" }
INFO:cargo_script: creating pkg dir...
INFO:cargo_script: generating Cargo package...
DEBUG:cargo_script: overwrite_file("/home/vi/.cargo/script-cache/file-q-2363294a81e39875/Cargo.toml", _, Some("381c27ee0ce4e79268ed7ec8ae93ef5d1042d862"))
DEBUG:cargo_script: .. hashes match
DEBUG:cargo_script: overwrite_file("/home/vi/.cargo/script-cache/file-q-2363294a81e39875/q.rs", _, Some("724af5bf73736d10cdfa2018f54f6ea1caaad491"))
DEBUG:cargo_script: .. hashes match
INFO:cargo_script: emitting metadata...
DEBUG:cargo_script: meta_path: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875/metadata.json"
INFO:cargo_script: disarming pkg dir cleanup...
INFO:cargo_script: executing "/home/vi/.cargo/binary-cache/release/q"
8
INFO:cargo_script: cleaning cache with max_age: 604800000
INFO:cargo_script: cutoff:            1475366186562 ms
INFO:cargo_script: checking: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875"
INFO:cargo_script: meta_mtime:        1475970986000 ms
INFO:cargo_script: done cleaning cache.
date=1475970986.575178216$ RUST_LOG=cargo_script=debug cargo-script script q
INFO:cargo_script: starting
INFO:cargo_script: args: ["cargo-script", "script", "q"]
INFO:cargo_script: Arguments: Args { script: Some("q"), args: [], features: None, expr: false, loop_: false, count: false, pkg_path: None, gen_pkg_only: false, build_only: false, clear_cache: false, debug: false, dep: [], dep_extern: [], extern_: [], force: false, unstable_features: [], use_bincache: None }
INFO:cargo_script: input: File("q", "/tmp/cs/q", "use std::fs::File;use std::io::Write;fn main(){let c=9;\n    let mut v = vec![];\n    ::std::io::Read::read_to_end(&mut File::open(\"q\").unwrap(),&mut v).unwrap();\n    let mut q = &mut File::create(\"q\").unwrap();\n    q.write(&v[..53]).unwrap();\n    q.write(format!(\"{}\",c+1).as_bytes()).unwrap();\n    q.write(&v[54..]).unwrap();\n    println!(\"{}\", c);\n}\n", 1475970986000)
INFO:cargo_script: deps: []
INFO:cargo_script: prelude_items: []
INFO:cargo_script: cache_path: "/home/vi/.cargo/script-cache"
INFO:cargo_script: id: "file-q-2363294a81e39875"
INFO:cargo_script: pkg_path: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875"
INFO:cargo_script: using_cache: true
INFO:cargo_script: splitting input...
INFO:cargo_script::manifest: splitting because of marker '"use "'
INFO:cargo_script::manifest: part_mani: Toml("")
INFO:cargo_script::manifest: source: "use std::fs::File;use std::io::Write;fn main(){let c=9;\n    let mut v = vec![];\n    ::std::io::Read::read_to_end(&mut File::open(\"q\").unwrap(),&mut v).unwrap();\n    let mut q = &mut File::create(\"q\").unwrap();\n    q.write(&v[..53]).unwrap();\n    q.write(format!(\"{}\",c+1).as_bytes()).unwrap();\n    q.write(&v[54..]).unwrap();\n    println!(\"{}\", c);\n}\n"
INFO:cargo_script::manifest: part_mani: {}
INFO:cargo_script::manifest: mani: {"bin": Array([Table({"name": String("q"), "path": String("q.rs")})]), "dependencies": Table({}), "package": Table({"authors": Array([String("Anonymous")]), "name": String("q"), "version": String("0.1.0")})}
INFO:cargo_script::manifest: mani_str: 
[[bin]]
name = "q"
path = "q.rs"

[dependencies]

[package]
authors = ["Anonymous"]
name = "q"
version = "0.1.0"

INFO:cargo_script: input_meta: PackageMetadata { path: Some("/tmp/cs/q"), modified: Some(1475970986000), debug: false, deps: [], prelude: [], features: None, manifest_hash: "381c27ee0ce4e79268ed7ec8ae93ef5d1042d862", script_hash: "724af5bf73736d10cdfa2018f54f6ea1caaad491" }
DEBUG:cargo_script: meta_path: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875/metadata.json"
INFO:cargo_script: recompiling because: metadata did not match
DEBUG:cargo_script: input metadata: PackageMetadata { path: Some("/tmp/cs/q"), modified: Some(1475970986000), debug: false, deps: [], prelude: [], features: None, manifest_hash: "381c27ee0ce4e79268ed7ec8ae93ef5d1042d862", script_hash: "724af5bf73736d10cdfa2018f54f6ea1caaad491" }
DEBUG:cargo_script: cache metadata: PackageMetadata { path: Some("/tmp/cs/q"), modified: Some(1475970985000), debug: false, deps: [], prelude: [], features: None, manifest_hash: "381c27ee0ce4e79268ed7ec8ae93ef5d1042d862", script_hash: "724af5bf73736d10cdfa2018f54f6ea1caaad491" }
INFO:cargo_script: action: InputAction { compile: true, force_compile: false, emit_metadata: true, execute: true, pkg_path: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875", using_cache: true, use_bincache: true, metadata: PackageMetadata { path: Some("/tmp/cs/q"), modified: Some(1475970986000), debug: false, deps: [], prelude: [], features: None, manifest_hash: "381c27ee0ce4e79268ed7ec8ae93ef5d1042d862", script_hash: "724af5bf73736d10cdfa2018f54f6ea1caaad491" }, old_metadata: Some(PackageMetadata { path: Some("/tmp/cs/q"), modified: Some(1475970985000), debug: false, deps: [], prelude: [], features: None, manifest_hash: "381c27ee0ce4e79268ed7ec8ae93ef5d1042d862", script_hash: "724af5bf73736d10cdfa2018f54f6ea1caaad491" }), manifest: "\n[[bin]]\nname = \"q\"\npath = \"q.rs\"\n\n[dependencies]\n\n[package]\nauthors = [\"Anonymous\"]\nname = \"q\"\nversion = \"0.1.0\"\n", script: "use std::fs::File;use std::io::Write;fn main(){let c=9;\n    let mut v = vec![];\n    ::std::io::Read::read_to_end(&mut File::open(\"q\").unwrap(),&mut v).unwrap();\n    let mut q = &mut File::create(\"q\").unwrap();\n    q.write(&v[..53]).unwrap();\n    q.write(format!(\"{}\",c+1).as_bytes()).unwrap();\n    q.write(&v[54..]).unwrap();\n    println!(\"{}\", c);\n}\n" }
INFO:cargo_script: creating pkg dir...
INFO:cargo_script: generating Cargo package...
DEBUG:cargo_script: overwrite_file("/home/vi/.cargo/script-cache/file-q-2363294a81e39875/Cargo.toml", _, Some("381c27ee0ce4e79268ed7ec8ae93ef5d1042d862"))
DEBUG:cargo_script: .. hashes match
DEBUG:cargo_script: overwrite_file("/home/vi/.cargo/script-cache/file-q-2363294a81e39875/q.rs", _, Some("724af5bf73736d10cdfa2018f54f6ea1caaad491"))
DEBUG:cargo_script: .. hashes match
INFO:cargo_script: compiling...
    Finished release [optimized] target(s) in 0.0 secs
INFO:cargo_script: writing meta hash: "a6898c8f5af1554791a5fe0ec79a25a1e26effca"...
INFO:cargo_script: emitting metadata...
DEBUG:cargo_script: meta_path: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875/metadata.json"
INFO:cargo_script: disarming pkg dir cleanup...
INFO:cargo_script: executing "/home/vi/.cargo/binary-cache/release/q"
8
INFO:cargo_script: cleaning cache with max_age: 604800000
INFO:cargo_script: cutoff:            1475366187849 ms
INFO:cargo_script: checking: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875"
INFO:cargo_script: meta_mtime:        1475970987000 ms
INFO:cargo_script: done cleaning cache.
date=1475970987.854804574$ RUST_LOG=cargo_script=debug cargo-script script q
INFO:cargo_script: starting
INFO:cargo_script: args: ["cargo-script", "script", "q"]
INFO:cargo_script: Arguments: Args { script: Some("q"), args: [], features: None, expr: false, loop_: false, count: false, pkg_path: None, gen_pkg_only: false, build_only: false, clear_cache: false, debug: false, dep: [], dep_extern: [], extern_: [], force: false, unstable_features: [], use_bincache: None }
INFO:cargo_script: input: File("q", "/tmp/cs/q", "use std::fs::File;use std::io::Write;fn main(){let c=9;\n    let mut v = vec![];\n    ::std::io::Read::read_to_end(&mut File::open(\"q\").unwrap(),&mut v).unwrap();\n    let mut q = &mut File::create(\"q\").unwrap();\n    q.write(&v[..53]).unwrap();\n    q.write(format!(\"{}\",c+1).as_bytes()).unwrap();\n    q.write(&v[54..]).unwrap();\n    println!(\"{}\", c);\n}\n", 1475970987000)
INFO:cargo_script: deps: []
INFO:cargo_script: prelude_items: []
INFO:cargo_script: cache_path: "/home/vi/.cargo/script-cache"
INFO:cargo_script: id: "file-q-2363294a81e39875"
INFO:cargo_script: pkg_path: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875"
INFO:cargo_script: using_cache: true
INFO:cargo_script: splitting input...
INFO:cargo_script::manifest: splitting because of marker '"use "'
INFO:cargo_script::manifest: part_mani: Toml("")
INFO:cargo_script::manifest: source: "use std::fs::File;use std::io::Write;fn main(){let c=9;\n    let mut v = vec![];\n    ::std::io::Read::read_to_end(&mut File::open(\"q\").unwrap(),&mut v).unwrap();\n    let mut q = &mut File::create(\"q\").unwrap();\n    q.write(&v[..53]).unwrap();\n    q.write(format!(\"{}\",c+1).as_bytes()).unwrap();\n    q.write(&v[54..]).unwrap();\n    println!(\"{}\", c);\n}\n"
INFO:cargo_script::manifest: part_mani: {}
INFO:cargo_script::manifest: mani: {"bin": Array([Table({"name": String("q"), "path": String("q.rs")})]), "dependencies": Table({}), "package": Table({"authors": Array([String("Anonymous")]), "name": String("q"), "version": String("0.1.0")})}
INFO:cargo_script::manifest: mani_str: 
[[bin]]
name = "q"
path = "q.rs"

[dependencies]

[package]
authors = ["Anonymous"]
name = "q"
version = "0.1.0"

INFO:cargo_script: input_meta: PackageMetadata { path: Some("/tmp/cs/q"), modified: Some(1475970987000), debug: false, deps: [], prelude: [], features: None, manifest_hash: "381c27ee0ce4e79268ed7ec8ae93ef5d1042d862", script_hash: "724af5bf73736d10cdfa2018f54f6ea1caaad491" }
DEBUG:cargo_script: meta_path: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875/metadata.json"
INFO:cargo_script: recompiling because: metadata did not match
DEBUG:cargo_script: input metadata: PackageMetadata { path: Some("/tmp/cs/q"), modified: Some(1475970987000), debug: false, deps: [], prelude: [], features: None, manifest_hash: "381c27ee0ce4e79268ed7ec8ae93ef5d1042d862", script_hash: "724af5bf73736d10cdfa2018f54f6ea1caaad491" }
DEBUG:cargo_script: cache metadata: PackageMetadata { path: Some("/tmp/cs/q"), modified: Some(1475970986000), debug: false, deps: [], prelude: [], features: None, manifest_hash: "381c27ee0ce4e79268ed7ec8ae93ef5d1042d862", script_hash: "724af5bf73736d10cdfa2018f54f6ea1caaad491" }
INFO:cargo_script: action: InputAction { compile: true, force_compile: false, emit_metadata: true, execute: true, pkg_path: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875", using_cache: true, use_bincache: true, metadata: PackageMetadata { path: Some("/tmp/cs/q"), modified: Some(1475970987000), debug: false, deps: [], prelude: [], features: None, manifest_hash: "381c27ee0ce4e79268ed7ec8ae93ef5d1042d862", script_hash: "724af5bf73736d10cdfa2018f54f6ea1caaad491" }, old_metadata: Some(PackageMetadata { path: Some("/tmp/cs/q"), modified: Some(1475970986000), debug: false, deps: [], prelude: [], features: None, manifest_hash: "381c27ee0ce4e79268ed7ec8ae93ef5d1042d862", script_hash: "724af5bf73736d10cdfa2018f54f6ea1caaad491" }), manifest: "\n[[bin]]\nname = \"q\"\npath = \"q.rs\"\n\n[dependencies]\n\n[package]\nauthors = [\"Anonymous\"]\nname = \"q\"\nversion = \"0.1.0\"\n", script: "use std::fs::File;use std::io::Write;fn main(){let c=9;\n    let mut v = vec![];\n    ::std::io::Read::read_to_end(&mut File::open(\"q\").unwrap(),&mut v).unwrap();\n    let mut q = &mut File::create(\"q\").unwrap();\n    q.write(&v[..53]).unwrap();\n    q.write(format!(\"{}\",c+1).as_bytes()).unwrap();\n    q.write(&v[54..]).unwrap();\n    println!(\"{}\", c);\n}\n" }
INFO:cargo_script: creating pkg dir...
INFO:cargo_script: generating Cargo package...
DEBUG:cargo_script: overwrite_file("/home/vi/.cargo/script-cache/file-q-2363294a81e39875/Cargo.toml", _, Some("381c27ee0ce4e79268ed7ec8ae93ef5d1042d862"))
DEBUG:cargo_script: .. hashes match
DEBUG:cargo_script: overwrite_file("/home/vi/.cargo/script-cache/file-q-2363294a81e39875/q.rs", _, Some("724af5bf73736d10cdfa2018f54f6ea1caaad491"))
DEBUG:cargo_script: .. hashes match
INFO:cargo_script: compiling...
    Finished release [optimized] target(s) in 0.0 secs
INFO:cargo_script: writing meta hash: "db24133347d00b8a6c478b99bdbba79f9453bb04"...
INFO:cargo_script: emitting metadata...
DEBUG:cargo_script: meta_path: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875/metadata.json"
INFO:cargo_script: disarming pkg dir cleanup...
INFO:cargo_script: executing "/home/vi/.cargo/binary-cache/release/q"
8
INFO:cargo_script: cleaning cache with max_age: 604800000
INFO:cargo_script: cutoff:            1475366188898 ms
INFO:cargo_script: checking: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875"
INFO:cargo_script: meta_mtime:        1475970988000 ms
INFO:cargo_script: done cleaning cache.
date=1475970988.905314367$ RUST_LOG=cargo_script=debug cargo-script script q
INFO:cargo_script: starting
INFO:cargo_script: args: ["cargo-script", "script", "q"]
INFO:cargo_script: Arguments: Args { script: Some("q"), args: [], features: None, expr: false, loop_: false, count: false, pkg_path: None, gen_pkg_only: false, build_only: false, clear_cache: false, debug: false, dep: [], dep_extern: [], extern_: [], force: false, unstable_features: [], use_bincache: None }
INFO:cargo_script: input: File("q", "/tmp/cs/q", "use std::fs::File;use std::io::Write;fn main(){let c=9;\n    let mut v = vec![];\n    ::std::io::Read::read_to_end(&mut File::open(\"q\").unwrap(),&mut v).unwrap();\n    let mut q = &mut File::create(\"q\").unwrap();\n    q.write(&v[..53]).unwrap();\n    q.write(format!(\"{}\",c+1).as_bytes()).unwrap();\n    q.write(&v[54..]).unwrap();\n    println!(\"{}\", c);\n}\n", 1475970988000)
INFO:cargo_script: deps: []
INFO:cargo_script: prelude_items: []
INFO:cargo_script: cache_path: "/home/vi/.cargo/script-cache"
INFO:cargo_script: id: "file-q-2363294a81e39875"
INFO:cargo_script: pkg_path: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875"
INFO:cargo_script: using_cache: true
INFO:cargo_script: splitting input...
INFO:cargo_script::manifest: splitting because of marker '"use "'
INFO:cargo_script::manifest: part_mani: Toml("")
INFO:cargo_script::manifest: source: "use std::fs::File;use std::io::Write;fn main(){let c=9;\n    let mut v = vec![];\n    ::std::io::Read::read_to_end(&mut File::open(\"q\").unwrap(),&mut v).unwrap();\n    let mut q = &mut File::create(\"q\").unwrap();\n    q.write(&v[..53]).unwrap();\n    q.write(format!(\"{}\",c+1).as_bytes()).unwrap();\n    q.write(&v[54..]).unwrap();\n    println!(\"{}\", c);\n}\n"
INFO:cargo_script::manifest: part_mani: {}
INFO:cargo_script::manifest: mani: {"bin": Array([Table({"name": String("q"), "path": String("q.rs")})]), "dependencies": Table({}), "package": Table({"authors": Array([String("Anonymous")]), "name": String("q"), "version": String("0.1.0")})}
INFO:cargo_script::manifest: mani_str: 
[[bin]]
name = "q"
path = "q.rs"

[dependencies]

[package]
authors = ["Anonymous"]
name = "q"
version = "0.1.0"

INFO:cargo_script: input_meta: PackageMetadata { path: Some("/tmp/cs/q"), modified: Some(1475970988000), debug: false, deps: [], prelude: [], features: None, manifest_hash: "381c27ee0ce4e79268ed7ec8ae93ef5d1042d862", script_hash: "724af5bf73736d10cdfa2018f54f6ea1caaad491" }
DEBUG:cargo_script: meta_path: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875/metadata.json"
INFO:cargo_script: recompiling because: metadata did not match
DEBUG:cargo_script: input metadata: PackageMetadata { path: Some("/tmp/cs/q"), modified: Some(1475970988000), debug: false, deps: [], prelude: [], features: None, manifest_hash: "381c27ee0ce4e79268ed7ec8ae93ef5d1042d862", script_hash: "724af5bf73736d10cdfa2018f54f6ea1caaad491" }
DEBUG:cargo_script: cache metadata: PackageMetadata { path: Some("/tmp/cs/q"), modified: Some(1475970987000), debug: false, deps: [], prelude: [], features: None, manifest_hash: "381c27ee0ce4e79268ed7ec8ae93ef5d1042d862", script_hash: "724af5bf73736d10cdfa2018f54f6ea1caaad491" }
INFO:cargo_script: action: InputAction { compile: true, force_compile: false, emit_metadata: true, execute: true, pkg_path: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875", using_cache: true, use_bincache: true, metadata: PackageMetadata { path: Some("/tmp/cs/q"), modified: Some(1475970988000), debug: false, deps: [], prelude: [], features: None, manifest_hash: "381c27ee0ce4e79268ed7ec8ae93ef5d1042d862", script_hash: "724af5bf73736d10cdfa2018f54f6ea1caaad491" }, old_metadata: Some(PackageMetadata { path: Some("/tmp/cs/q"), modified: Some(1475970987000), debug: false, deps: [], prelude: [], features: None, manifest_hash: "381c27ee0ce4e79268ed7ec8ae93ef5d1042d862", script_hash: "724af5bf73736d10cdfa2018f54f6ea1caaad491" }), manifest: "\n[[bin]]\nname = \"q\"\npath = \"q.rs\"\n\n[dependencies]\n\n[package]\nauthors = [\"Anonymous\"]\nname = \"q\"\nversion = \"0.1.0\"\n", script: "use std::fs::File;use std::io::Write;fn main(){let c=9;\n    let mut v = vec![];\n    ::std::io::Read::read_to_end(&mut File::open(\"q\").unwrap(),&mut v).unwrap();\n    let mut q = &mut File::create(\"q\").unwrap();\n    q.write(&v[..53]).unwrap();\n    q.write(format!(\"{}\",c+1).as_bytes()).unwrap();\n    q.write(&v[54..]).unwrap();\n    println!(\"{}\", c);\n}\n" }
INFO:cargo_script: creating pkg dir...
INFO:cargo_script: generating Cargo package...
DEBUG:cargo_script: overwrite_file("/home/vi/.cargo/script-cache/file-q-2363294a81e39875/Cargo.toml", _, Some("381c27ee0ce4e79268ed7ec8ae93ef5d1042d862"))
DEBUG:cargo_script: .. hashes match
DEBUG:cargo_script: overwrite_file("/home/vi/.cargo/script-cache/file-q-2363294a81e39875/q.rs", _, Some("724af5bf73736d10cdfa2018f54f6ea1caaad491"))
DEBUG:cargo_script: .. hashes match
INFO:cargo_script: compiling...
    Finished release [optimized] target(s) in 0.0 secs
INFO:cargo_script: writing meta hash: "3a67802b1db97e1869b53bc2acf4a714b7123967"...
INFO:cargo_script: emitting metadata...
DEBUG:cargo_script: meta_path: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875/metadata.json"
INFO:cargo_script: disarming pkg dir cleanup...
INFO:cargo_script: executing "/home/vi/.cargo/binary-cache/release/q"
8
INFO:cargo_script: cleaning cache with max_age: 604800000
INFO:cargo_script: cutoff:            1475366190140 ms
INFO:cargo_script: checking: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875"
INFO:cargo_script: meta_mtime:        1475970990000 ms
INFO:cargo_script: done cleaning cache.
date=1475970990.150381524$ RUST_LOG=cargo_script=debug cargo-script script q
INFO:cargo_script: starting
INFO:cargo_script: args: ["cargo-script", "script", "q"]
INFO:cargo_script: Arguments: Args { script: Some("q"), args: [], features: None, expr: false, loop_: false, count: false, pkg_path: None, gen_pkg_only: false, build_only: false, clear_cache: false, debug: false, dep: [], dep_extern: [], extern_: [], force: false, unstable_features: [], use_bincache: None }
INFO:cargo_script: input: File("q", "/tmp/cs/q", "use std::fs::File;use std::io::Write;fn main(){let c=9;\n    let mut v = vec![];\n    ::std::io::Read::read_to_end(&mut File::open(\"q\").unwrap(),&mut v).unwrap();\n    let mut q = &mut File::create(\"q\").unwrap();\n    q.write(&v[..53]).unwrap();\n    q.write(format!(\"{}\",c+1).as_bytes()).unwrap();\n    q.write(&v[54..]).unwrap();\n    println!(\"{}\", c);\n}\n", 1475970990000)
INFO:cargo_script: deps: []
INFO:cargo_script: prelude_items: []
INFO:cargo_script: cache_path: "/home/vi/.cargo/script-cache"
INFO:cargo_script: id: "file-q-2363294a81e39875"
INFO:cargo_script: pkg_path: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875"
INFO:cargo_script: using_cache: true
INFO:cargo_script: splitting input...
INFO:cargo_script::manifest: splitting because of marker '"use "'
INFO:cargo_script::manifest: part_mani: Toml("")
INFO:cargo_script::manifest: source: "use std::fs::File;use std::io::Write;fn main(){let c=9;\n    let mut v = vec![];\n    ::std::io::Read::read_to_end(&mut File::open(\"q\").unwrap(),&mut v).unwrap();\n    let mut q = &mut File::create(\"q\").unwrap();\n    q.write(&v[..53]).unwrap();\n    q.write(format!(\"{}\",c+1).as_bytes()).unwrap();\n    q.write(&v[54..]).unwrap();\n    println!(\"{}\", c);\n}\n"
INFO:cargo_script::manifest: part_mani: {}
INFO:cargo_script::manifest: mani: {"bin": Array([Table({"name": String("q"), "path": String("q.rs")})]), "dependencies": Table({}), "package": Table({"authors": Array([String("Anonymous")]), "name": String("q"), "version": String("0.1.0")})}
INFO:cargo_script::manifest: mani_str: 
[[bin]]
name = "q"
path = "q.rs"

[dependencies]

[package]
authors = ["Anonymous"]
name = "q"
version = "0.1.0"

INFO:cargo_script: input_meta: PackageMetadata { path: Some("/tmp/cs/q"), modified: Some(1475970990000), debug: false, deps: [], prelude: [], features: None, manifest_hash: "381c27ee0ce4e79268ed7ec8ae93ef5d1042d862", script_hash: "724af5bf73736d10cdfa2018f54f6ea1caaad491" }
DEBUG:cargo_script: meta_path: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875/metadata.json"
INFO:cargo_script: recompiling because: metadata did not match
DEBUG:cargo_script: input metadata: PackageMetadata { path: Some("/tmp/cs/q"), modified: Some(1475970990000), debug: false, deps: [], prelude: [], features: None, manifest_hash: "381c27ee0ce4e79268ed7ec8ae93ef5d1042d862", script_hash: "724af5bf73736d10cdfa2018f54f6ea1caaad491" }
DEBUG:cargo_script: cache metadata: PackageMetadata { path: Some("/tmp/cs/q"), modified: Some(1475970988000), debug: false, deps: [], prelude: [], features: None, manifest_hash: "381c27ee0ce4e79268ed7ec8ae93ef5d1042d862", script_hash: "724af5bf73736d10cdfa2018f54f6ea1caaad491" }
INFO:cargo_script: action: InputAction { compile: true, force_compile: false, emit_metadata: true, execute: true, pkg_path: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875", using_cache: true, use_bincache: true, metadata: PackageMetadata { path: Some("/tmp/cs/q"), modified: Some(1475970990000), debug: false, deps: [], prelude: [], features: None, manifest_hash: "381c27ee0ce4e79268ed7ec8ae93ef5d1042d862", script_hash: "724af5bf73736d10cdfa2018f54f6ea1caaad491" }, old_metadata: Some(PackageMetadata { path: Some("/tmp/cs/q"), modified: Some(1475970988000), debug: false, deps: [], prelude: [], features: None, manifest_hash: "381c27ee0ce4e79268ed7ec8ae93ef5d1042d862", script_hash: "724af5bf73736d10cdfa2018f54f6ea1caaad491" }), manifest: "\n[[bin]]\nname = \"q\"\npath = \"q.rs\"\n\n[dependencies]\n\n[package]\nauthors = [\"Anonymous\"]\nname = \"q\"\nversion = \"0.1.0\"\n", script: "use std::fs::File;use std::io::Write;fn main(){let c=9;\n    let mut v = vec![];\n    ::std::io::Read::read_to_end(&mut File::open(\"q\").unwrap(),&mut v).unwrap();\n    let mut q = &mut File::create(\"q\").unwrap();\n    q.write(&v[..53]).unwrap();\n    q.write(format!(\"{}\",c+1).as_bytes()).unwrap();\n    q.write(&v[54..]).unwrap();\n    println!(\"{}\", c);\n}\n" }
INFO:cargo_script: creating pkg dir...
INFO:cargo_script: generating Cargo package...
DEBUG:cargo_script: overwrite_file("/home/vi/.cargo/script-cache/file-q-2363294a81e39875/Cargo.toml", _, Some("381c27ee0ce4e79268ed7ec8ae93ef5d1042d862"))
DEBUG:cargo_script: .. hashes match
DEBUG:cargo_script: overwrite_file("/home/vi/.cargo/script-cache/file-q-2363294a81e39875/q.rs", _, Some("724af5bf73736d10cdfa2018f54f6ea1caaad491"))
DEBUG:cargo_script: .. hashes match
INFO:cargo_script: compiling...
    Finished release [optimized] target(s) in 0.0 secs
INFO:cargo_script: writing meta hash: "80487de32c7650effaea2563db1c4ebb24d6685b"...
INFO:cargo_script: emitting metadata...
DEBUG:cargo_script: meta_path: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875/metadata.json"
INFO:cargo_script: disarming pkg dir cleanup...
INFO:cargo_script: executing "/home/vi/.cargo/binary-cache/release/q"
8
INFO:cargo_script: cleaning cache with max_age: 604800000
INFO:cargo_script: cutoff:            1475366191728 ms
INFO:cargo_script: checking: "/home/vi/.cargo/script-cache/file-q-2363294a81e39875"
INFO:cargo_script: meta_mtime:        1475970991000 ms
INFO:cargo_script: done cleaning cache.
date=1475970991.758551307$ 

vi avatar Oct 08 '16 23:10 vi