quantaxis-rs 0.3.4

quantaxis in rust
Documentation
Build #1972993 2025-04-09 02:41:35
# rustc version
rustc 1.88.0-nightly (d4f880f8c 2025-04-08)# docs.rs version
docsrs 0.6.0 (ee9a3fe6 2025-03-28)# build log
[INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace/builds/quantaxis-rs-0.3.4/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace/builds/quantaxis-rs-0.3.4/source:/opt/rustwide/workdir:ro,Z" "-v" "/home/cratesfyi/workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/home/cratesfyi/workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "DOCS_RS=1" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "6442450944" "--cpus" "6" "--user" "1001:1001" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "--config" "build.rustdocflags=[\"--cfg\", \"docsrs\", \"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20250408-1.88.0-nightly-d4f880f8c\", \"--static-root-path\", \"/-/rustdoc.static/\", \"--cap-lints\", \"warn\", \"--extern-html-root-takes-precedence\"]" "--offline" "-Zunstable-options" "--config=doc.extern-map.registries.crates-io=\"https://docs.rs/{pkg_name}/{version}/x86_64-unknown-linux-gnu\"" "-Zrustdoc-scrape-examples" "-j6" "--target" "x86_64-unknown-linux-gnu", kill_on_drop: false }`
[INFO] [stdout] 63399e608de210eebbaffe90cbdbdaf1f42d021af4e86bcbaafbe7c02fc297ba
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "63399e608de210eebbaffe90cbdbdaf1f42d021af4e86bcbaafbe7c02fc297ba", kill_on_drop: false }`
[INFO] [stderr] warning: target filter specified, but no targets matched; this is a no-op
[INFO] [stderr]  Documenting quantaxis-rs v0.3.4 (/opt/rustwide/workdir)
[INFO] [stderr] warning: type `account_info` should have an upper camel case name
[INFO] [stderr]   --> src/qaaccount.rs:56:12
[INFO] [stderr]    |
[INFO] [stderr] 56 | pub struct account_info {
[INFO] [stderr]    |            ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `AccountInfo`
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(non_camel_case_types)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: type `account` should have an upper camel case name
[INFO] [stderr]   --> src/qaaccount.rs:63:12
[INFO] [stderr]    |
[INFO] [stderr] 63 | pub struct account {
[INFO] [stderr]    |            ^^^^^^^ help: convert the identifier to upper camel case: `Account`
[INFO] [stderr] 
[INFO] [stderr] warning: type `QA_Account` should have an upper camel case name
[INFO] [stderr]    --> src/qaaccount.rs:105:12
[INFO] [stderr]     |
[INFO] [stderr] 105 | pub struct QA_Account {
[INFO] [stderr]     |            ^^^^^^^^^^ help: convert the identifier to upper camel case: `QaAccount`
[INFO] [stderr]     |
[INFO] [stderr] note: the lint level is defined here
[INFO] [stderr]    --> src/qaaccount.rs:103:8
[INFO] [stderr]     |
[INFO] [stderr] 103 | #[warn(non_camel_case_types)]
[INFO] [stderr]     |        ^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unnecessary parentheses around assigned value
[INFO] [stderr]    --> src/qaaccount.rs:886:23
[INFO] [stderr]     |
[INFO] [stderr] 886 |         self.money -= (margin - close_profit + commission + tax);
[INFO] [stderr]     |                       ^                                        ^
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(unused_parens)]` on by default
[INFO] [stderr] help: remove these parentheses
[INFO] [stderr]     |
[INFO] [stderr] 886 -         self.money -= (margin - close_profit + commission + tax);
[INFO] [stderr] 886 +         self.money -= margin - close_profit + commission + tax;
[INFO] [stderr]     |
[INFO] [stderr] 
[INFO] [stderr] warning: unnecessary parentheses around assigned value
[INFO] [stderr]    --> src/qaaccount.rs:959:23
[INFO] [stderr]     |
[INFO] [stderr] 959 |         self.money -= (margin - close_profit + commission + tax);
[INFO] [stderr]     |                       ^                                        ^
[INFO] [stderr]     |
[INFO] [stderr] help: remove these parentheses
[INFO] [stderr]     |
[INFO] [stderr] 959 -         self.money -= (margin - close_profit + commission + tax);
[INFO] [stderr] 959 +         self.money -= margin - close_profit + commission + tax;
[INFO] [stderr]     |
[INFO] [stderr] 
[INFO] [stderr] warning: type `QA_Frozen` should have an upper camel case name
[INFO] [stderr]  --> src/qaposition.rs:9:12
[INFO] [stderr]   |
[INFO] [stderr] 9 | pub struct QA_Frozen {
[INFO] [stderr]   |            ^^^^^^^^^ help: convert the identifier to upper camel case: `QaFrozen`
[INFO] [stderr] 
[INFO] [stderr] warning: type `QA_Postions` should have an upper camel case name
[INFO] [stderr]   --> src/qaposition.rs:22:12
[INFO] [stderr]    |
[INFO] [stderr] 22 | pub struct QA_Postions {
[INFO] [stderr]    |            ^^^^^^^^^^^ help: convert the identifier to upper camel case: `QaPostions`
[INFO] [stderr] 
[INFO] [stderr] warning: unnecessary parentheses around assigned value
[INFO] [stderr]    --> src/qaposition.rs:237:33
[INFO] [stderr]     |
[INFO] [stderr] 237 |         self.volume_long_his += (self.volume_long_today + self.volume_long_frozen_today);
[INFO] [stderr]     |                                 ^                                                      ^
[INFO] [stderr]     |
[INFO] [stderr] help: remove these parentheses
[INFO] [stderr]     |
[INFO] [stderr] 237 -         self.volume_long_his += (self.volume_long_today + self.volume_long_frozen_today);
[INFO] [stderr] 237 +         self.volume_long_his += self.volume_long_today + self.volume_long_frozen_today;
[INFO] [stderr]     |
[INFO] [stderr] 
[INFO] [stderr] warning: unnecessary parentheses around assigned value
[INFO] [stderr]    --> src/qaposition.rs:240:34
[INFO] [stderr]     |
[INFO] [stderr] 240 |         self.volume_short_his += (self.volume_short_today + self.volume_short_frozen_today);
[INFO] [stderr]     |                                  ^                                                        ^
[INFO] [stderr]     |
[INFO] [stderr] help: remove these parentheses
[INFO] [stderr]     |
[INFO] [stderr] 240 -         self.volume_short_his += (self.volume_short_today + self.volume_short_frozen_today);
[INFO] [stderr] 240 +         self.volume_short_his += self.volume_short_today + self.volume_short_frozen_today;
[INFO] [stderr]     |
[INFO] [stderr] 
[INFO] [stderr] warning: unnecessary parentheses around assigned value
[INFO] [stderr]    --> src/qaposition.rs:246:33
[INFO] [stderr]     |
[INFO] [stderr] 246 |         self.volume_long_his += (self.volume_long_today + self.volume_long_frozen_today);
[INFO] [stderr]     |                                 ^                                                      ^
[INFO] [stderr]     |
[INFO] [stderr] help: remove these parentheses
[INFO] [stderr]     |
[INFO] [stderr] 246 -         self.volume_long_his += (self.volume_long_today + self.volume_long_frozen_today);
[INFO] [stderr] 246 +         self.volume_long_his += self.volume_long_today + self.volume_long_frozen_today;
[INFO] [stderr]     |
[INFO] [stderr] 
[INFO] [stderr] warning: unnecessary parentheses around assigned value
[INFO] [stderr]    --> src/qaposition.rs:249:34
[INFO] [stderr]     |
[INFO] [stderr] 249 |         self.volume_short_his += (self.volume_short_today + self.volume_short_frozen_today);
[INFO] [stderr]     |                                  ^                                                        ^
[INFO] [stderr]     |
[INFO] [stderr] help: remove these parentheses
[INFO] [stderr]     |
[INFO] [stderr] 249 -         self.volume_short_his += (self.volume_short_today + self.volume_short_frozen_today);
[INFO] [stderr] 249 +         self.volume_short_his += self.volume_short_today + self.volume_short_frozen_today;
[INFO] [stderr]     |
[INFO] [stderr] 
[INFO] [stderr] warning: type `QAPerformance_Single` should have an upper camel case name
[INFO] [stderr]   --> src/qaperformance.rs:43:12
[INFO] [stderr]    |
[INFO] [stderr] 43 | pub struct QAPerformance_Single {
[INFO] [stderr]    |            ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `QaperformanceSingle`
[INFO] [stderr] 
[INFO] [stderr] warning: unnecessary parentheses around assigned value
[INFO] [stderr]    --> src/trade_date.rs:941:19
[INFO] [stderr]     |
[INFO] [stderr] 941 |         let day = (date - year * 10000 - month * 100);
[INFO] [stderr]     |                   ^                                 ^
[INFO] [stderr]     |
[INFO] [stderr] help: remove these parentheses
[INFO] [stderr]     |
[INFO] [stderr] 941 -         let day = (date - year * 10000 - month * 100);
[INFO] [stderr] 941 +         let day = date - year * 10000 - month * 100;
[INFO] [stderr]     |
[INFO] [stderr] 
[INFO] [stderr] warning: unexpected `cfg` condition name: `has_error_description_deprecated`
[INFO] [stderr]  --> src/errors.rs:1:1
[INFO] [stderr]   |
[INFO] [stderr] 1 | / error_chain! {
[INFO] [stderr] 2 | |     errors {
[INFO] [stderr] 3 | |         InvalidParameter { description("invalid parameter") }
[INFO] [stderr] 4 | |         DataItemIncomplete { description("data item is incomplete") }
[INFO] [stderr] ... |
[INFO] [stderr] 8 | | }
[INFO] [stderr]   | |_^
[INFO] [stderr]   |
[INFO] [stderr]   = help: expected names are: `docsrs`, `feature`, and `test` and 31 more
[INFO] [stderr]   = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate
[INFO] [stderr]   = help: try referring to `impl_error_chain_processed` crate for guidance on how handle this unexpected cfg
[INFO] [stderr]   = help: the macro `impl_error_chain_processed` may come from an old version of the `error_chain` crate, try updating your dependency with `cargo update -p error_chain`
[INFO] [stderr]   = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stderr]   = note: `#[warn(unexpected_cfgs)]` on by default
[INFO] [stderr]   = note: this warning originates in the macro `impl_error_chain_processed` which comes from the expansion of the macro `error_chain` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] warning: `quantaxis-rs` (lib doc) generated 14 warnings (run `cargo fix --lib -p quantaxis-rs` to apply 7 suggestions)
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.95s
[INFO] [stderr]    Generated /opt/rustwide/target/x86_64-unknown-linux-gnu/doc/quantaxis_rs/index.html
[INFO] running `Command { std: "docker" "inspect" "63399e608de210eebbaffe90cbdbdaf1f42d021af4e86bcbaafbe7c02fc297ba", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "63399e608de210eebbaffe90cbdbdaf1f42d021af4e86bcbaafbe7c02fc297ba", kill_on_drop: false }`
[INFO] [stdout] 63399e608de210eebbaffe90cbdbdaf1f42d021af4e86bcbaafbe7c02fc297ba