[Rust] Flexbuffers dependency cleanup and fixes (#5998)

* Fix doc comment warnings

Can't use doc comment "///" syntax on macros, that generates the following warning:

warning: unused doc comment
   --> src\flexbuffer_type.rs:236:5
    |
236 |     /// returns true if and only if the flexbuffer type is `VectorFloat4`.
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macros
    |
    = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion

So switched to just use ordinary "//" comments on these to be warning free

* Upgrade num_enum 0.4.1 -> 0.5.0

* Remove unused and non-working usage of test crates

* Remove usage of abandoned debug_stub_derive crate

Which brought in old pre-v1 syn and quote crates.

This replaces it with just manual Debug trait implementation instead for the 2 cases
This commit is contained in:
Johan Andersson
2020-06-26 02:12:10 +02:00
committed by GitHub
parent 165a6e3d1e
commit 35d45cac7a
5 changed files with 58 additions and 44 deletions

View File

@@ -14,7 +14,6 @@ categories = ["encoding", "data-structures", "memory-management"]
serde = "1.0"
serde_derive = "1.0"
byteorder = "1.3.2"
num_enum = "0.4.1"
debug_stub_derive = "0.3.0"
num_enum = "0.5.0"
bitflags = "1.2.1"