Rust crate for logging to LogDNA

Bug reports and pull requests are welcome on GitHub at

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.

Issues

Collection of the latest Issues

peter-kehl

peter-kehl

0

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:
  • a conversion function like 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

peter-kehl

0

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.

  1. 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.)

  2. 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.

c-nixon

c-nixon

3

In no particular order Add

Docs/legal scaffoding:

  • LICENCE(s)
  • Contributing.md
  • Code of Conduct

Technical stuff:

  • CI
  • README with build instructions etc
  • coverage badge

Rust stuff:

  • docs.rs badge
  • crates.io badge

Note we don't need all of this up front, but we should at least have the legal stuff and a README

Information - Updated Jun 18, 2022

Stars: 2
Forks: 4
Issues: 6

macOS/iOS Security framework for Rust

MIT license (LICENSE-MIT or

macOS/iOS Security framework for Rust

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

A fast and flexible CSV reader and writer for Rust, with support for Serde

Fast linear time &amp; space suffix arrays for Rust

Dual-licensed under MIT or the If you just want the details on how construction algorithm used, see the

Fast linear time &amp; space suffix arrays for Rust

OpenGliderNetwork client for Rust based on actix

MIT license (LICENSE-MIT or

OpenGliderNetwork client for Rust based on actix

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)

The arkworks ecosystem consist of Rust libraries for designing and working with zero knowledge succinct...

Threshold Secret Sharing

Efficient pure-Rust library for MIT license (LICENSE-MIT or

Threshold Secret Sharing

The low-level io_uring userspace interface for Rust

The low-level MIT license (LICENSE-MIT or

The low-level io_uring userspace interface for Rust

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

An attempt to build a compiler from scratch for a simple language, using Rust

iCalendar in Rust

Please double check the MIT license (LICENSE-MIT or issues or comprehensive pull requests are welcome!

iCalendar in Rust

Rust library for low-level abstraction of MIPS32 processors

This project is licensed under the terms of the MIT license

Rust library for low-level abstraction of MIPS32 processors

A pure Rust library for reading/writing Windows

A pure Rust library for reading/writing License

A pure Rust library for reading/writing Windows
Facebook Instagram Twitter GitHub Dribbble
Privacy