taosdata / bailongma-rs Goto Github PK
View Code? Open in Web Editor NEWTDengine adapters for prometheus
TDengine adapters for prometheus
the proper license should be the same as what Bailongma-go uses.
$ cargo build
warning: function is never used: `md5sum`
--> src/utils.rs:1:8
|
1 | pub fn md5sum(bytes: &[u8]) -> String {
| ^^^^^^
|
= note: `#[warn(dead_code)]` on by default
warning: function is never used: `taos_hash_id`
--> src/utils.rs:9:8
|
9 | pub fn taos_hash_id(bytes: &[u8]) -> i32 {
| ^^^^^^^^^^^^
warning: 2 warnings emitted
Compiling bailongma v0.1.0 (/home/shuduo/work/taosdata/bailongma-rs)
warning: unused variable: `rt`
--> src/bin/blm-bench-prom.rs:74:32
|
74 | fn build_timeseries(&self, rt: &tokio::runtime::Runtime, ts_offset: i64) {
| ^^ help: if this is intentional, prefix it with an underscore: `_rt`
|
= note: `#[warn(unused_variables)]` on by default
warning: 1 warning emitted
warning: unused imports: `Arc`, `RwLock`
--> src/main.rs:4:12
|
4 | sync::{Arc, Mutex, RwLock},
| ^^^ ^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
warning: unused imports: `HttpRequest`, `Responder`
--> src/main.rs:12:10
|
12 | App, HttpRequest, HttpResponse, HttpServer, Responder, Result as WebResult,
| ^^^^^^^^^^^ ^^^^^^^^^
warning: unused imports: `TaosCfg`, `TaosPool`
--> src/main.rs:20:35
|
20 | use libtaos::{self as taos, Taos, TaosCfg, TaosCfgBuilder, TaosCode, TaosPool};
| ^^^^^^^ ^^^^^^^^
warning: unused imports: `FnvHashMap`, `FnvHashSet`
--> src/main.rs:22:11
|
22 | use fnv::{FnvHashMap, FnvHashSet};
| ^^^^^^^^^^ ^^^^^^^^^^
error[E0658]: use of unstable library feature 'backtrace'
--> src/main.rs:330:77
|
330 | error!("error in {} retry: {}\nbacktraces: {}", i, err, err.backtrace());
| ^^^^^^^^^
|
= note: see issue #53487 <https://github.com/rust-lang/rust/issues/53487\> for more information
error[E0277]: `std::option::Option<&std::backtrace::Backtrace>` doesn't implement `std::fmt::Display`
--> src/main.rs:330:73
|
330 | error!("error in {} retry: {}\nbacktraces: {}", i, err, err.backtrace());
| ^^^^^^^^^^^^^^^ `std::option::Option<&std::backtrace::Backtrace>` cannot be formatted with the default formatter
|
= help: the trait `std::fmt::Display` is not implemented for `std::option::Option<&std::backtrace::Backtrace>`
= note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
= note: required by `std::fmt::Display::fmt`
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to 2 previous errors; 4 warnings emitted
Some errors have detailed explanations: E0277, E0658.
For more information about an error, try `rustc --explain E0277`.
error: could not compile `bailongma`.
To learn more, run the command again with --verbose.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.