Comments (2)
I would not use it; Claxon has zero dependencies and that is a feature.
There are two extremes for the scope of a library: on the one end, there are the big frameworks, and on the other hand there are “microlibraries” (libraries that contain just one or a few functions). Big frameworks are undesirable if you only need a small part of them, because you nonetheless need to download and compile the entire thing. But microlibraries are also undesirable: they too increase download and compile time (more requests, the metadata is often larger than the code itself, the build tool needs to start a compiler process, the linker needs to do more work, etc.). Furthermore, microlibraries put more burden on the end users: they now need to check for license compatibility, keep an eye out for vulnerabilities, read the changelogs, hope that the library supports the Rust version they use, etc.
Where the benefits of reuse start to outweigh the cost of adding a dependency, is something that people should decide for themselves. I personally think the cost of dependencies is often underestimated.
For Vorbis comments specifically, the code has already been written, so the main advantage would be that bugfixes or other improvements could be shared (I don’t expect any binary size advantages, because most of the code will be inlined). But as you say, there is very little code in the first place, so I do not expect this piece of code to need a lot of maintenance. Therefore I do not think the advantages outweigh the cost in this case.
from claxon.
Okay, I see. I'll close this then, thanks for the reply.
from claxon.
Related Issues (19)
- version of hound required by claxon does not compile HOT 3
- Contents of uninitialized memory are leaked into the output on malformed inputs HOT 9
- [wishlist] Drop the unsafe ensure_buffer_len() HOT 4
- Some FLAC files don't decode because LPC order > 12 is not supported HOT 6
- Support reading flac tag HOT 2
- Emtpy Vorbis Comment HOT 7
- How to use in async code HOT 2
- Consider adding encoding support HOT 1
- Reading on uninitialized memory may cause UB HOT 6
- MSRV for this crate? HOT 2
- A blueprint for seeking feature HOT 6
- Frame with block size shorter than 16 samples HOT 2
- Reading undecoded FLAC frames HOT 3
- Last call on FLAC specification HOT 2
- Frame CRC mismatch HOT 2
- Support alternative containers HOT 5
- Issues with privacy HOT 7
- FLAC file reading performance 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 claxon.