Comments (4)
As a related note, the reason I'm trying to figure this out is because I want to override the Display
implementation of the Varlink errors. Right now I'm planning on using Regex to replace the existing display implementation with my own, but that seems hackish. Do you have any other ideas for a way to do this?
from rust.
Hmm, easiest thing would be a generator option specifying not to generate the Display trait.
from rust.
The way I did it was I replaced the generated implementation with an include!
so that it would include my implementation from another file. We could add an alternative_display_impl
option that would be an Option<&Path>
maybe.
from rust.
Hmm, easiest thing would be a generator option specifying not to generate the Display trait.
That would be useful for other traits too. I just tripped over the
PartialEq
trait which I need to behave differently
(array should be treated as equivalent irrespective of the order
of elements) than the derived one.
from rust.
Related Issues (20)
- Inability to use `handle` in all server implementations HOT 3
- RFE: use nix instead of libc directly? HOT 2
- varlink 3.1.0 broke API
- Parser error HOT 7
- Updating from varlink 1.1.0 to varlink 7.0.0 auto code generation compile errors HOT 4
- Question on the names of returned variables HOT 1
- Question: which license can I use for varlink_grammar.peg HOT 5
- Does not compile on 32-bit Windows HOT 1
- Error without Box
- Error Type From Generated Client Not Sync + Send HOT 5
- Recommended Way to Shutdown Varlink Server? HOT 5
- Please tag v10.0.0 HOT 1
- varlink_derive compilation error: proc_macro only usable with crates of the proc-macro crate type HOT 2
- null is not deserialized correctly HOT 3
- Worker thread exhaustion HOT 3
- [Question] stdin/stdout of varlink service HOT 4
- Please expand `varlink::ListenConfig` to support socker permission HOT 2
- test_generate fails with recent rust stack HOT 1
- custom {de,}serialization HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rust.