diff --git a/Cargo.toml b/Cargo.toml index 523e1e4b9d460a5f3742532f6bb5c76ee82e00aa..f21df190776bc49095b6203c431a0b262b40f684 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,26 +14,22 @@ derive_more = "0.99.2" # runtime bincode = "1.2.1" -serde = { version = "1.0.112", features = ["derive"] } +serde = { version = "1.0.114", features = ["derive"] } getrandom = "0.1.14" # tiny crate. used to guess controller-id -take_mut = "0.2.2" -indexmap = "1.3.0" # hashsets/hashmaps with efficient arbitrary element removal -replace_with = "0.1.5" +# take_mut = "0.2.2" +indexmap = "1.4.0" # hashsets/hashmaps with efficient arbitrary element removal # network -integer-encoding = "1.0.7" -byteorder = "1.3.2" -# mio = "0.6.21" -mio-extras = "2.0.6" +# integer-encoding = "1.1.5" +# byteorder = "1.3.4" mio = { version = "0.7.0", package = "mio", features = ["tcp", "os-poll"] } # protocol -# id-arena = "2.2.1" backtrace = "0.3" [dev-dependencies] -test-generator = "0.3.0" -crossbeam-utils = "0.7.0" +# test-generator = "0.3.0" +crossbeam-utils = "0.7.2" lazy_static = "1.4.0" [lib] diff --git a/examples/make.py b/examples/make.py index b7efdc620d00d7d68accc8473db228d315e0fc89..a5dd5efc28901f165836dd7871b1ed347e9a563e 100644 --- a/examples/make.py +++ b/examples/make.py @@ -1,15 +1,15 @@ import os, glob, subprocess script_path = os.path.dirname(os.path.realpath(__file__)); for c_file in glob.glob(script_path + "/*/*.c", recursive=False): - print("compiling", c_file) - args = [ - "gcc", - "-L", - "../target/release", - "-lreowolf_rs", - "-Wl,-R../target/release", - c_file, - "-o", - c_file[:-2] - ]; - subprocess.run(args); \ No newline at end of file + print("compiling", c_file) + args = [ + "gcc", # compiler + "-L", # lib path flag + "./", # where to look for libs + "-lreowolf_rs", # add lib called "reowolf_rs" + "-Wl,-R./", # pass -R flag to linker: produce relocatable object + c_file, # input source file + "-o", # output flag + c_file[:-2] # output filename + ]; + subprocess.run(args);