[INFO] fetching crate kubera 0.0.2... [INFO] testing kubera-0.0.2 against try#b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b for pr-145330-1 [INFO] extracting crate kubera 0.0.2 into /workspace/builds/worker-3-tc2/source [INFO] started tweaking crates.io crate kubera 0.0.2 [INFO] finished tweaking crates.io crate kubera 0.0.2 [INFO] tweaked toml for crates.io crate kubera 0.0.2 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate kubera 0.0.2 on toolchain b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate kubera 0.0.2 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7b2b8b81e63e8af846940e9d2bb9f8040fd6d3f31f17c9c81dcdd702af3fa56e [INFO] running `Command { std: "docker" "start" "-a" "7b2b8b81e63e8af846940e9d2bb9f8040fd6d3f31f17c9c81dcdd702af3fa56e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7b2b8b81e63e8af846940e9d2bb9f8040fd6d3f31f17c9c81dcdd702af3fa56e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7b2b8b81e63e8af846940e9d2bb9f8040fd6d3f31f17c9c81dcdd702af3fa56e", kill_on_drop: false }` [INFO] [stdout] 7b2b8b81e63e8af846940e9d2bb9f8040fd6d3f31f17c9c81dcdd702af3fa56e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b6c50b92662566e792abcfaf81390d42dbe79f28e2d8ba29015526ddfce5dce0 [INFO] running `Command { std: "docker" "start" "-a" "b6c50b92662566e792abcfaf81390d42dbe79f28e2d8ba29015526ddfce5dce0", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.79 [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling redb v2.1.1 [INFO] [stderr] Compiling virtue v0.0.13 [INFO] [stderr] Compiling iana-time-zone v0.1.60 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling crossbeam-queue v0.3.11 [INFO] [stderr] Compiling bincode_derive v2.0.0-rc.3 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling syn v2.0.53 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling bincode v2.0.0-rc.3 [INFO] [stderr] Compiling core_affinity v0.8.1 [INFO] [stderr] Compiling chrono v0.4.38 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling kubera v0.0.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 14.35s [INFO] running `Command { std: "docker" "inspect" "b6c50b92662566e792abcfaf81390d42dbe79f28e2d8ba29015526ddfce5dce0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b6c50b92662566e792abcfaf81390d42dbe79f28e2d8ba29015526ddfce5dce0", kill_on_drop: false }` [INFO] [stdout] b6c50b92662566e792abcfaf81390d42dbe79f28e2d8ba29015526ddfce5dce0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3c11d6e4051cb1d8a4b71ffd61bcaafc0d60e54774183f6537e73e443ddee9ee [INFO] running `Command { std: "docker" "start" "-a" "3c11d6e4051cb1d8a4b71ffd61bcaafc0d60e54774183f6537e73e443ddee9ee", kill_on_drop: false }` [INFO] [stderr] Compiling log v0.4.21 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling kubera v0.0.2 (/opt/rustwide/workdir) [INFO] [stderr] Compiling tracing-subscriber v0.3.18 [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 3.92s [INFO] running `Command { std: "docker" "inspect" "3c11d6e4051cb1d8a4b71ffd61bcaafc0d60e54774183f6537e73e443ddee9ee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3c11d6e4051cb1d8a4b71ffd61bcaafc0d60e54774183f6537e73e443ddee9ee", kill_on_drop: false }` [INFO] [stdout] 3c11d6e4051cb1d8a4b71ffd61bcaafc0d60e54774183f6537e73e443ddee9ee [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] a00b87979dfda8979c0120cbdae249c0890051c51366f3ae02edcc2fe221f0fe [INFO] running `Command { std: "docker" "start" "-a" "a00b87979dfda8979c0120cbdae249c0890051c51366f3ae02edcc2fe221f0fe", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.05s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/kubera-772ea3c458bc0a44) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests kubera [INFO] [stdout] [INFO] [stdout] running 2 tests [INFO] [stdout] test src/lib.rs - (line 123) ... FAILED [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] [stdout] test src/lib.rs - (line 32) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 123) stdout ---- [INFO] [stdout] error: unknown start of token: \ [INFO] [stdout] --> src/lib.rs:124:56 [INFO] [stdout] | [INFO] [stdout] 1 | 2024-07-08T14:55:28.291721Z INFO ThreadId(01) examples\trade-engine.rs:81: AccountId: 1 Name: Alice Timestamp: 2024-07-08 19:55:28 [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \ [INFO] [stdout] --> src/lib.rs:125:56 [INFO] [stdout] | [INFO] [stdout] 2 | 2024-07-08T14:55:28.291953Z INFO ThreadId(01) examples\trade-engine.rs:86: CurrencyId: 1 Symbol: USD Balance: 100000.00 [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \ [INFO] [stdout] --> src/lib.rs:126:56 [INFO] [stdout] | [INFO] [stdout] 3 | 2024-07-08T14:55:28.292068Z INFO ThreadId(01) examples\trade-engine.rs:92: CurrencyHistoryId: 1 Balance: 100000.00 Timestamp: 2024-07-08... [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \ [INFO] [stdout] --> src/lib.rs:127:56 [INFO] [stdout] | [INFO] [stdout] 4 | 2024-07-08T14:55:28.292168Z INFO ThreadId(01) examples\trade-engine.rs:81: AccountId: 2 Name: Bob Timestamp: 2024-07-08 19:55:28 [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \ [INFO] [stdout] --> src/lib.rs:128:56 [INFO] [stdout] | [INFO] [stdout] 5 | 2024-07-08T14:55:28.292261Z INFO ThreadId(01) examples\trade-engine.rs:86: CurrencyId: 2 Symbol: USD Balance: 0.00 [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \ [INFO] [stdout] --> src/lib.rs:129:56 [INFO] [stdout] | [INFO] [stdout] 6 | 2024-07-08T14:55:28.292380Z INFO ThreadId(01) examples\trade-engine.rs:98: CryptoCurrencyId: 1 BTC Amount: 1 [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \ [INFO] [stdout] --> src/lib.rs:130:56 [INFO] [stdout] | [INFO] [stdout] 7 | 2024-07-08T14:55:28.292476Z INFO ThreadId(01) examples\trade-engine.rs:104: CryptoCurrencyHistoryId: 1 Quantity: 1 Timestamp: 2024-07-08... [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \ [INFO] [stdout] --> src/lib.rs:131:51 [INFO] [stdout] | [INFO] [stdout] 8 | 2024-07-08T14:55:29.288109Z INFO ThreadId(02) src\matcher.rs:157: Before Matching [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \ [INFO] [stdout] --> src/lib.rs:132:51 [INFO] [stdout] | [INFO] [stdout] 9 | 2024-07-08T14:55:29.288289Z INFO ThreadId(02) src\matcher.rs:160: Buy Order: Order { id: 1, account_id: 1, trade_type: Buy, price_type: ... [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \ [INFO] [stdout] --> src/lib.rs:133:51 [INFO] [stdout] | [INFO] [stdout] 10 | 2024-07-08T14:55:29.288362Z INFO ThreadId(02) src\matcher.rs:163: Sell Order: Order { id: 2, account_id: 2, trade_type: Sell, price_type... [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \ [INFO] [stdout] --> src/lib.rs:134:51 [INFO] [stdout] | [INFO] [stdout] 11 | 2024-07-08T14:55:29.288436Z INFO ThreadId(02) src\matcher.rs:157: After Matching [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \ [INFO] [stdout] --> src/lib.rs:135:51 [INFO] [stdout] | [INFO] [stdout] 12 | 2024-07-08T14:55:29.288492Z INFO ThreadId(02) src\matcher.rs:163: Sell Order: Order { id: 2, account_id: 2, trade_type: Sell, price_type... [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \ [INFO] [stdout] --> src/lib.rs:136:56 [INFO] [stdout] | [INFO] [stdout] 13 | 2024-07-08T14:55:29.292973Z INFO ThreadId(01) examples\trade-engine.rs:64: OrderMatch: Buy Order Id: 1 Sell Order Id: 2 Quantity: 0.5 Pr... [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \ [INFO] [stdout] --> src/lib.rs:137:56 [INFO] [stdout] | [INFO] [stdout] 14 | 2024-07-08T14:55:29.312581Z INFO ThreadId(01) examples\trade-engine.rs:81: AccountId: 1 Name: Alice Timestamp: 2024-07-08 19:55:28 [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \ [INFO] [stdout] --> src/lib.rs:138:56 [INFO] [stdout] | [INFO] [stdout] 15 | 2024-07-08T14:55:29.312779Z INFO ThreadId(01) examples\trade-engine.rs:86: CurrencyId: 1 Symbol: USD Balance: 75000.00 [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \ [INFO] [stdout] --> src/lib.rs:139:56 [INFO] [stdout] | [INFO] [stdout] 16 | 2024-07-08T14:55:29.312920Z INFO ThreadId(01) examples\trade-engine.rs:92: CurrencyHistoryId: 1 Balance: 100000.00 Timestamp: 2024-07-08... [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \ [INFO] [stdout] --> src/lib.rs:140:56 [INFO] [stdout] | [INFO] [stdout] 17 | 2024-07-08T14:55:29.313002Z INFO ThreadId(01) examples\trade-engine.rs:92: CurrencyHistoryId: 2 Balance: 75000.00 Timestamp: 2024-07-08 ... [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \ [INFO] [stdout] --> src/lib.rs:141:56 [INFO] [stdout] | [INFO] [stdout] 18 | 2024-07-08T14:55:29.313127Z INFO ThreadId(01) examples\trade-engine.rs:98: CryptoCurrencyId: 2 BTC Amount: 0.5 [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \ [INFO] [stdout] --> src/lib.rs:142:56 [INFO] [stdout] | [INFO] [stdout] 19 | 2024-07-08T14:55:29.313255Z INFO ThreadId(01) examples\trade-engine.rs:104: CryptoCurrencyHistoryId: 2 Quantity: 0.5 Timestamp: 2024-07-... [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \ [INFO] [stdout] --> src/lib.rs:143:56 [INFO] [stdout] | [INFO] [stdout] 20 | 2024-07-08T14:55:29.313335Z INFO ThreadId(01) examples\trade-engine.rs:81: AccountId: 2 Name: Bob Timestamp: 2024-07-08 19:55:28 [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \ [INFO] [stdout] --> src/lib.rs:144:56 [INFO] [stdout] | [INFO] [stdout] 21 | 2024-07-08T14:55:29.313454Z INFO ThreadId(01) examples\trade-engine.rs:86: CurrencyId: 2 Symbol: USD Balance: 25000.00 [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \ [INFO] [stdout] --> src/lib.rs:145:56 [INFO] [stdout] | [INFO] [stdout] 22 | 2024-07-08T14:55:29.313579Z INFO ThreadId(01) examples\trade-engine.rs:92: CurrencyHistoryId: 3 Balance: 25000.00 Timestamp: 2024-07-08 ... [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \ [INFO] [stdout] --> src/lib.rs:146:56 [INFO] [stdout] | [INFO] [stdout] 23 | 2024-07-08T14:55:29.313707Z INFO ThreadId(01) examples\trade-engine.rs:98: CryptoCurrencyId: 1 BTC Amount: 0.5 [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \ [INFO] [stdout] --> src/lib.rs:147:56 [INFO] [stdout] | [INFO] [stdout] 24 | 2024-07-08T14:55:29.313814Z INFO ThreadId(01) examples\trade-engine.rs:104: CryptoCurrencyHistoryId: 1 Quantity: 1 Timestamp: 2024-07-08... [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \ [INFO] [stdout] --> src/lib.rs:148:56 [INFO] [stdout] | [INFO] [stdout] 25 | 2024-07-08T14:55:29.313881Z INFO ThreadId(01) examples\trade-engine.rs:104: CryptoCurrencyHistoryId: 3 Quantity: 0.5 Timestamp: 2024-07-... [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \ [INFO] [stdout] --> src/lib.rs:149:51 [INFO] [stdout] | [INFO] [stdout] 26 | 2024-07-08T14:55:30.288721Z INFO ThreadId(02) src\matcher.rs:157: Before Matching [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \ [INFO] [stdout] --> src/lib.rs:150:51 [INFO] [stdout] | [INFO] [stdout] 27 | 2024-07-08T14:55:30.288946Z INFO ThreadId(02) src\matcher.rs:160: Buy Order: Order { id: 3, account_id: 1, trade_type: Buy, price_type: ... [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \ [INFO] [stdout] --> src/lib.rs:151:51 [INFO] [stdout] | [INFO] [stdout] 28 | 2024-07-08T14:55:30.289023Z INFO ThreadId(02) src\matcher.rs:163: Sell Order: Order { id: 2, account_id: 2, trade_type: Sell, price_type... [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \ [INFO] [stdout] --> src/lib.rs:152:56 [INFO] [stdout] | [INFO] [stdout] 29 | 2024-07-08T14:55:30.315944Z INFO ThreadId(01) examples\trade-engine.rs:64: OrderMatch: Buy Order Id: 3 Sell Order Id: 2 Quantity: 0.5 Pr... [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \ [INFO] [stdout] --> src/lib.rs:153:56 [INFO] [stdout] | [INFO] [stdout] 30 | 2024-07-08T14:55:30.334073Z INFO ThreadId(01) examples\trade-engine.rs:81: AccountId: 1 Name: Alice Timestamp: 2024-07-08 19:55:28 [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \ [INFO] [stdout] --> src/lib.rs:154:56 [INFO] [stdout] | [INFO] [stdout] 31 | 2024-07-08T14:55:30.334267Z INFO ThreadId(01) examples\trade-engine.rs:86: CurrencyId: 1 Symbol: USD Balance: 50000.00 [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \ [INFO] [stdout] --> src/lib.rs:155:56 [INFO] [stdout] | [INFO] [stdout] 32 | 2024-07-08T14:55:30.334448Z INFO ThreadId(01) examples\trade-engine.rs:92: CurrencyHistoryId: 1 Balance: 100000.00 Timestamp: 2024-07-08... [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \ [INFO] [stdout] --> src/lib.rs:156:56 [INFO] [stdout] | [INFO] [stdout] 33 | 2024-07-08T14:55:30.334571Z INFO ThreadId(01) examples\trade-engine.rs:92: CurrencyHistoryId: 2 Balance: 75000.00 Timestamp: 2024-07-08 ... [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \ [INFO] [stdout] --> src/lib.rs:157:56 [INFO] [stdout] | [INFO] [stdout] 34 | 2024-07-08T14:55:30.334686Z INFO ThreadId(01) examples\trade-engine.rs:92: CurrencyHistoryId: 4 Balance: 50000.00 Timestamp: 2024-07-08 ... [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \ [INFO] [stdout] --> src/lib.rs:158:56 [INFO] [stdout] | [INFO] [stdout] 35 | 2024-07-08T14:55:30.334863Z INFO ThreadId(01) examples\trade-engine.rs:98: CryptoCurrencyId: 2 BTC Amount: 1 [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \ [INFO] [stdout] --> src/lib.rs:159:56 [INFO] [stdout] | [INFO] [stdout] 36 | 2024-07-08T14:55:30.335030Z INFO ThreadId(01) examples\trade-engine.rs:104: CryptoCurrencyHistoryId: 2 Quantity: 0.5 Timestamp: 2024-07-... [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \ [INFO] [stdout] --> src/lib.rs:160:56 [INFO] [stdout] | [INFO] [stdout] 37 | 2024-07-08T14:55:30.335130Z INFO ThreadId(01) examples\trade-engine.rs:104: CryptoCurrencyHistoryId: 4 Quantity: 1 Timestamp: 2024-07-08... [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \ [INFO] [stdout] --> src/lib.rs:161:56 [INFO] [stdout] | [INFO] [stdout] 38 | 2024-07-08T14:55:30.335217Z INFO ThreadId(01) examples\trade-engine.rs:81: AccountId: 2 Name: Bob Timestamp: 2024-07-08 19:55:28 [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \ [INFO] [stdout] --> src/lib.rs:162:56 [INFO] [stdout] | [INFO] [stdout] 39 | 2024-07-08T14:55:30.335340Z INFO ThreadId(01) examples\trade-engine.rs:86: CurrencyId: 2 Symbol: USD Balance: 50000.00 [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \ [INFO] [stdout] --> src/lib.rs:163:56 [INFO] [stdout] | [INFO] [stdout] 40 | 2024-07-08T14:55:30.335495Z INFO ThreadId(01) examples\trade-engine.rs:92: CurrencyHistoryId: 3 Balance: 25000.00 Timestamp: 2024-07-08 ... [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \ [INFO] [stdout] --> src/lib.rs:164:56 [INFO] [stdout] | [INFO] [stdout] 41 | 2024-07-08T14:55:30.335588Z INFO ThreadId(01) examples\trade-engine.rs:92: CurrencyHistoryId: 5 Balance: 50000.00 Timestamp: 2024-07-08 ... [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \ [INFO] [stdout] --> src/lib.rs:165:56 [INFO] [stdout] | [INFO] [stdout] 42 | 2024-07-08T14:55:30.335720Z INFO ThreadId(01) examples\trade-engine.rs:98: CryptoCurrencyId: 1 BTC Amount: 0 [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \ [INFO] [stdout] --> src/lib.rs:166:56 [INFO] [stdout] | [INFO] [stdout] 43 | 2024-07-08T14:55:30.335846Z INFO ThreadId(01) examples\trade-engine.rs:104: CryptoCurrencyHistoryId: 1 Quantity: 1 Timestamp: 2024-07-08... [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \ [INFO] [stdout] --> src/lib.rs:167:56 [INFO] [stdout] | [INFO] [stdout] 44 | 2024-07-08T14:55:30.335923Z INFO ThreadId(01) examples\trade-engine.rs:104: CryptoCurrencyHistoryId: 3 Quantity: 0.5 Timestamp: 2024-07-... [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \ [INFO] [stdout] --> src/lib.rs:168:56 [INFO] [stdout] | [INFO] [stdout] 45 | 2024-07-08T14:55:30.335993Z INFO ThreadId(01) examples\trade-engine.rs:104: CryptoCurrencyHistoryId: 5 Quantity: 0 Timestamp: 2024-07-08... [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \ [INFO] [stdout] --> src/lib.rs:169:51 [INFO] [stdout] | [INFO] [stdout] 46 | 2024-07-08T14:55:31.289822Z INFO ThreadId(02) src\matcher.rs:157: Before Matching [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \ [INFO] [stdout] --> src/lib.rs:170:51 [INFO] [stdout] | [INFO] [stdout] 47 | 2024-07-08T14:55:31.290319Z INFO ThreadId(02) src\matcher.rs:160: Buy Order: Order { id: 4, account_id: 1, trade_type: Buy, price_type: ... [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \ [INFO] [stdout] --> src/lib.rs:171:51 [INFO] [stdout] | [INFO] [stdout] 48 | 2024-07-08T14:55:31.290590Z INFO ThreadId(02) src\matcher.rs:157: After Matching [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: expected item, found `2024` [INFO] [stdout] --> src/lib.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 1 | 2024-07-08T14:55:28.291721Z INFO ThreadId(01) examples\trade-engine.rs:81: AccountId: 1 Name: Alice Timestamp: 2024-07-08 19:55:28 [INFO] [stdout] | ^^^^ expected item [INFO] [stdout] | [INFO] [stdout] = note: for a full list of items that can appear in modules, see [INFO] [stdout] [INFO] [stdout] error: aborting due to 49 previous errors [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 32) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Arc` [INFO] [stdout] --> src/lib.rs:34:26 [INFO] [stdout] | [INFO] [stdout] 3 | let storage_system = Arc::new(StorageSystem::new()); [INFO] [stdout] | ^^^ use of undeclared type `Arc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use std::sync::Arc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StorageSystem` [INFO] [stdout] --> src/lib.rs:34:35 [INFO] [stdout] | [INFO] [stdout] 3 | let storage_system = Arc::new(StorageSystem::new()); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `StorageSystem` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use kubera::storage::StorageSystem; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `AssetSystem` [INFO] [stdout] --> src/lib.rs:35:30 [INFO] [stdout] | [INFO] [stdout] 4 | let mut assets_system = AssetSystem::new(storage_system.clone()); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `AssetSystem` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use kubera::assets::AssetSystem; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Currency` in this scope [INFO] [stdout] --> src/lib.rs:37:47 [INFO] [stdout] | [INFO] [stdout] 6 | let _ = assets_system.create_currency(Currency { id: 0, symbol: "USD".to_string() }); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use kubera::assets::Currency; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `CryptoCurrency` in this scope [INFO] [stdout] --> src/lib.rs:40:54 [INFO] [stdout] | [INFO] [stdout] 9 | let _ = assets_system.create_crypto_currency(CryptoCurrency { id: 0, symbol: "BTC".to_string() }); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use kubera::assets::CryptoCurrency; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Arc` [INFO] [stdout] --> src/lib.rs:43:25 [INFO] [stdout] | [INFO] [stdout] 12 | let assets_system = Arc::new(assets_system); [INFO] [stdout] | ^^^ use of undeclared type `Arc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use std::sync::Arc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `AccountSystem` [INFO] [stdout] --> src/lib.rs:44:31 [INFO] [stdout] | [INFO] [stdout] 13 | let mut accounts_system = AccountSystem::new(storage_system.clone(), assets_system.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `AccountSystem` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use kubera::accounts::AccountSystem; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Account` in this scope [INFO] [stdout] --> src/lib.rs:50:58 [INFO] [stdout] | [INFO] [stdout] 19 | let account1_id = accounts_system.create_account(Account { id: 0, name: "Alice".to_string(), timestamp: SystemTime::now() }); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use kubera::accounts::Account; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SystemTime` [INFO] [stdout] --> src/lib.rs:50:113 [INFO] [stdout] | [INFO] [stdout] 19 | let account1_id = accounts_system.create_account(Account { id: 0, name: "Alice".to_string(), timestamp: SystemTime::now() }); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `SystemTime` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 2 + use std::time::SystemTime; [INFO] [stdout] | [INFO] [stdout] 2 + use tracing_subscriber::fmt::time::SystemTime; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Account` in this scope [INFO] [stdout] --> src/lib.rs:51:58 [INFO] [stdout] | [INFO] [stdout] 20 | let account2_id = accounts_system.create_account(Account { id: 0, name: "Bob".to_string(), timestamp: SystemTime::now() }); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use kubera::accounts::Account; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SystemTime` [INFO] [stdout] --> src/lib.rs:51:111 [INFO] [stdout] | [INFO] [stdout] 20 | let account2_id = accounts_system.create_account(Account { id: 0, name: "Bob".to_string(), timestamp: SystemTime::now() }); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `SystemTime` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 2 + use std::time::SystemTime; [INFO] [stdout] | [INFO] [stdout] 2 + use tracing_subscriber::fmt::time::SystemTime; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `OrderSystem` [INFO] [stdout] --> src/lib.rs:59:28 [INFO] [stdout] | [INFO] [stdout] 28 | let mut order_system = OrderSystem::new(storage_system.clone(), assets_system.clone()); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `OrderSystem` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use kubera::orders::OrderSystem; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MatcherSystem` [INFO] [stdout] --> src/lib.rs:64:26 [INFO] [stdout] | [INFO] [stdout] 33 | let matcher_system = MatcherSystem::start(crypto_currency_id, currency_id, core_id); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `MatcherSystem` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use kubera::matcher::MatcherSystem; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Order` in this scope [INFO] [stdout] --> src/lib.rs:65:44 [INFO] [stdout] | [INFO] [stdout] 34 | let order1 = order_system.create_order(Order { id: 0, account_id: account1_id, trade_type: TradeType::Buy, price_type: PriceType::Mar... [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use kubera::orders::Order; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TradeType` [INFO] [stdout] --> src/lib.rs:65:96 [INFO] [stdout] | [INFO] [stdout] 34 | ... id: 0, account_id: account1_id, trade_type: TradeType::Buy, price_type: PriceType::Market, execution_type: ExecutionType::Full, crypt... [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TradeType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use kubera::orders::TradeType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PriceType` [INFO] [stdout] --> src/lib.rs:65:124 [INFO] [stdout] | [INFO] [stdout] 34 | ..._id, trade_type: TradeType::Buy, price_type: PriceType::Market, execution_type: ExecutionType::Full, crypto_currency_id: crypto_curren... [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PriceType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use kubera::orders::PriceType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ExecutionType` [INFO] [stdout] --> src/lib.rs:65:159 [INFO] [stdout] | [INFO] [stdout] 34 | ...type: PriceType::Market, execution_type: ExecutionType::Full, crypto_currency_id: crypto_currency_id, currency_id, quantity: 0.5, sta... [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `ExecutionType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use kubera::orders::ExecutionType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `OrderStatus` [INFO] [stdout] --> src/lib.rs:65:257 [INFO] [stdout] | [INFO] [stdout] 34 | ...y_id, currency_id, quantity: 0.5, status: OrderStatus::Open, timestamp: SystemTime::now()}); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `OrderStatus` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use kubera::orders::OrderStatus; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SystemTime` [INFO] [stdout] --> src/lib.rs:65:287 [INFO] [stdout] | [INFO] [stdout] 34 | ...0.5, status: OrderStatus::Open, timestamp: SystemTime::now()}); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `SystemTime` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 2 + use std::time::SystemTime; [INFO] [stdout] | [INFO] [stdout] 2 + use tracing_subscriber::fmt::time::SystemTime; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Order` in this scope [INFO] [stdout] --> src/lib.rs:66:44 [INFO] [stdout] | [INFO] [stdout] 35 | let order2 = order_system.create_order(Order { id: 0, account_id: account2_id, trade_type: TradeType::Sell, price_type: PriceType::Li... [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use kubera::orders::Order; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TradeType` [INFO] [stdout] --> src/lib.rs:66:96 [INFO] [stdout] | [INFO] [stdout] 35 | ... id: 0, account_id: account2_id, trade_type: TradeType::Sell, price_type: PriceType::Limit(50000.00), execution_type: ExecutionType::P... [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TradeType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use kubera::orders::TradeType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PriceType` [INFO] [stdout] --> src/lib.rs:66:125 [INFO] [stdout] | [INFO] [stdout] 35 | ...id, trade_type: TradeType::Sell, price_type: PriceType::Limit(50000.00), execution_type: ExecutionType::Partial, crypto_currency_id: c... [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PriceType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use kubera::orders::PriceType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ExecutionType` [INFO] [stdout] --> src/lib.rs:66:169 [INFO] [stdout] | [INFO] [stdout] 35 | ...ceType::Limit(50000.00), execution_type: ExecutionType::Partial, crypto_currency_id: crypto_currency_id, currency_id, quantity: 1.0, ... [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `ExecutionType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use kubera::orders::ExecutionType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `OrderStatus` [INFO] [stdout] --> src/lib.rs:66:270 [INFO] [stdout] | [INFO] [stdout] 35 | ...y_id, currency_id, quantity: 1.0, status: OrderStatus::Open, timestamp: SystemTime::now()}); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `OrderStatus` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use kubera::orders::OrderStatus; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SystemTime` [INFO] [stdout] --> src/lib.rs:66:300 [INFO] [stdout] | [INFO] [stdout] 35 | ...1.0, status: OrderStatus::Open, timestamp: SystemTime::now()}); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `SystemTime` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 2 + use std::time::SystemTime; [INFO] [stdout] | [INFO] [stdout] 2 + use tracing_subscriber::fmt::time::SystemTime; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Order` in this scope [INFO] [stdout] --> src/lib.rs:76:54 [INFO] [stdout] | [INFO] [stdout] 45 | ... let order = order_system.create_order(Order { id: 0, account_id: account1_id, trade_type: TradeType::Buy, price_type: PriceType::Ma... [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use kubera::orders::Order; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TradeType` [INFO] [stdout] --> src/lib.rs:76:106 [INFO] [stdout] | [INFO] [stdout] 45 | ... id: 0, account_id: account1_id, trade_type: TradeType::Buy, price_type: PriceType::Market, execution_type: ExecutionType::Full, crypt... [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TradeType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use kubera::orders::TradeType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PriceType` [INFO] [stdout] --> src/lib.rs:76:134 [INFO] [stdout] | [INFO] [stdout] 45 | ..._id, trade_type: TradeType::Buy, price_type: PriceType::Market, execution_type: ExecutionType::Full, crypto_currency_id: crypto_curren... [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PriceType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use kubera::orders::PriceType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ExecutionType` [INFO] [stdout] --> src/lib.rs:76:169 [INFO] [stdout] | [INFO] [stdout] 45 | ...type: PriceType::Market, execution_type: ExecutionType::Full, crypto_currency_id: crypto_currency_id, currency_id, quantity: 0.5, sta... [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `ExecutionType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use kubera::orders::ExecutionType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `OrderStatus` [INFO] [stdout] --> src/lib.rs:76:267 [INFO] [stdout] | [INFO] [stdout] 45 | ...y_id, currency_id, quantity: 0.5, status: OrderStatus::Open, timestamp: SystemTime::now()}); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `OrderStatus` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use kubera::orders::OrderStatus; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SystemTime` [INFO] [stdout] --> src/lib.rs:76:297 [INFO] [stdout] | [INFO] [stdout] 45 | ...0.5, status: OrderStatus::Open, timestamp: SystemTime::now()}); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `SystemTime` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 2 + use std::time::SystemTime; [INFO] [stdout] | [INFO] [stdout] 2 + use tracing_subscriber::fmt::time::SystemTime; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Arc` in this scope [INFO] [stdout] --> src/lib.rs:85:35 [INFO] [stdout] | [INFO] [stdout] 54 | fn print_accounts(storage_system: Arc) { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use std::sync::Arc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `StorageSystem` in this scope [INFO] [stdout] --> src/lib.rs:85:39 [INFO] [stdout] | [INFO] [stdout] 54 | fn print_accounts(storage_system: Arc) { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use kubera::storage::StorageSystem; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DateTime` in this scope [INFO] [stdout] --> src/lib.rs:88:23 [INFO] [stdout] | [INFO] [stdout] 57 | let datetime: DateTime = account.timestamp.into(); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use chrono::DateTime; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Local` in this scope [INFO] [stdout] --> src/lib.rs:88:32 [INFO] [stdout] | [INFO] [stdout] 57 | let datetime: DateTime = account.timestamp.into(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use chrono::Local; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DateTime` in this scope [INFO] [stdout] --> src/lib.rs:99:31 [INFO] [stdout] | [INFO] [stdout] 68 | let datetime: DateTime = account_currency_history.timestamp.into(); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use chrono::DateTime; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Local` in this scope [INFO] [stdout] --> src/lib.rs:99:40 [INFO] [stdout] | [INFO] [stdout] 68 | let datetime: DateTime = account_currency_history.timestamp.into(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use chrono::Local; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DateTime` in this scope [INFO] [stdout] --> src/lib.rs:111:31 [INFO] [stdout] | [INFO] [stdout] 80 | let datetime: DateTime = account_crypto_currency_history.timestamp.into(); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use chrono::DateTime; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Local` in this scope [INFO] [stdout] --> src/lib.rs:111:40 [INFO] [stdout] | [INFO] [stdout] 80 | let datetime: DateTime = account_crypto_currency_history.timestamp.into(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use chrono::Local; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 39 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0422, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 123) [INFO] [stdout] src/lib.rs - (line 32) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.24s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "a00b87979dfda8979c0120cbdae249c0890051c51366f3ae02edcc2fe221f0fe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a00b87979dfda8979c0120cbdae249c0890051c51366f3ae02edcc2fe221f0fe", kill_on_drop: false }` [INFO] [stdout] a00b87979dfda8979c0120cbdae249c0890051c51366f3ae02edcc2fe221f0fe