frol / flatc-rust Goto Github PK
View Code? Open in Web Editor NEWFlatBuffers compiler (flatc) as API (with focus on transparent `.fbs` to `.rs` code-generation via Cargo build scripts integration)
License: Apache License 2.0
FlatBuffers compiler (flatc) as API (with focus on transparent `.fbs` to `.rs` code-generation via Cargo build scripts integration)
License: Apache License 2.0
Would it be possible to change the definition of the Args
struct from &'a [&'a Path]
to something like &'a [P]
where P: AsRef<Path>
?
I have a Vec<PathBuf>
that comes from reading a config file. I would like to be able to just pass it to flatc as Args{ inputs: &inputs[..], ... }
.
Thanks :)
Would it be possible to get a new release published? It would be useful to have this fix available in a published crate: #7
(We get bitten by build breakages that require us to hand-edit our Cargo.lock every time we do a package upgrade)
Would it be possible to change flatc_rust::Args.inputs
to accept things of type AsRef<Path>
instead of regular Path
? That way it could accept PathBuf
s as well, which would make it easier to get it to interact with the glob
crate.
Would it be easy enough that a intermediate Rustacean might be able to send you a PR?
error[E0277]: the trait bound `[u8; 40]: Default` is not satisfied
--> cluster/protofiles/src/struct_generated.rs:707:23
|
707 | pub struct COrderLink(pub [u8; 40]);
| ^^^^^^^^^^^^ the trait `Default` is not implemented for `[u8; 40]`
|
= help: the following implementations were found:
<&[T] as Default>
<&mut [T] as Default>
<[T; 0] as Default>
<[T; 10] as Default>
and 31 others
= note: required by `std::default::Default::default`
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
flatc
has rich set of arguments https://google.github.io/flatbuffers/flatbuffers_guide_using_schema_compiler.html
I saw you implement the basic set that works just fine, but for example I'd love to modify the --filename-suffix
, but cannot findout how?
Help would be much appreciated!
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.