Rust crate for logging to LogDNA
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/logdna/logdna-rust.
License
The crate is available as open source under the terms of the MIT License.
Bug reports and pull requests are welcome on GitHub at https://github.com/logdna/logdna-rust.
The crate is available as open source under the terms of the MIT License.
Collection of the latest Issues
peter-kehl
Thank you for Tags::parse(..)
.
We probably don't need/want any out-of-the box parsing for key-value pairs, since the separators... may vary. But how about
KeyValueMap::new(given_map: HashMap)
that would take its ownership (especially since the current implementation is a wrapper), and optionally:KeyValueMap::new(it: Iterator<Item = (impl String, impl String)>) -> Self
? (Or implementing TryFrom
, but something tells me that TryFrom
is not a good way to go here.)peter-kehl
Hi at LogDNA/Mezmo crate maintainer/creator,
Thank you for this Rust library. It works marvels.
I see that you guard your API, to make it future proof/implementation-independent. Like KeyValueMap
is a value type around HashMap
, rather than HashMap
itself.
If you didn't intend KeyValueMap
to be Clone
, you may want to make it a one-field struct {} rather than a one-field tuple, because a tuple automatically is Clone
or even Copy
(and I believe it's automatically Debug
, too) if all its fields are Clone
or Copy
(or Debug
). Of course, you may have intended KeyValueMap
to be Clone
, which I'd be thankful for.
(I've checked and there are no other named tuples around: egrep -r "struct +[a-zA-Z_]+ *\(" src
.)
On the other hand, Clone
is very handy. For example, Axum requires the (HTTP GET/POST...) service handler function/closure to be Clone
(https://docs.rs/axum/latest/axum/handler/trait.Handler.html). Currently there's no way to instantiate one Client
, use it before spinning up Axum
and pass it to the handler(s), too.
So it would help if KeyValueMap, Params, RequestTemplate
and Client
(or at least Client
and/or RequestTemplate
) were Clone
, please.
peter-kehl
Please update dependencies to current versions. Consequently, SegmentedBuf
and related need an additional bound T: 'static
.
(I'll provide a PR.)
peter-kehl
Update README.md:
API_KEY
is your Ingestion key
.c-nixon
In no particular order Add
Docs/legal scaffoding:
Technical stuff:
Rust stuff:
Note we don't need all of this up front, but we should at least have the legal stuff and a README
1.2K
A fast and flexible CSV reader and writer for Rust, with support for Serde
Dual-licensed under MIT or the If you're new to Rust, the
183
Fast linear time & space suffix arrays for Rust
Dual-licensed under MIT or the If you just want the details on how construction algorithm used, see the
68
The arkworks ecosystem consist of Rust libraries for designing and working with zero knowledge succinct...
This library is released under the MIT License and the Apache v2 License (see License)
126
Threshold Secret Sharing
Efficient pure-Rust library for MIT license (LICENSE-MIT or
572
The low-level io_uring userspace interface for Rust
The low-level MIT license (LICENSE-MIT or
0
An attempt to build a compiler from scratch for a simple language, using Rust
New issues and pull requests are welcome on GitHub at MIT License
35
iCalendar in Rust
Please double check the MIT license (LICENSE-MIT or issues or comprehensive pull requests are welcome!
358
This is a Rust language crate for accessing the packet sniffing capabilities of pcap (or...
Download the WinPcap MIT license (LICENSE-MIT or
27
Rust library for low-level abstraction of MIPS32 processors
This project is licensed under the terms of the MIT license
15
A pure Rust library for reading/writing Windows
A pure Rust library for reading/writing License