Comments (3)
Hi Franziskus, I'm afraid this one is going to be difficult to do.
i) if we split into two crates, we'll run into the Rust limitation that you can't implement a trait or make an impl
block for a type that is not defined in your crate
ii) we can't retrieve the #[not_hacspec]
attribute in external crates metadata, the attributes are compltely erased
The solution for enforcing this is to generate additional .json
files containing a whitelist of functions in Hacspec, but this is a heavy machinery to implement and I didn't have the time to do it yet.
from hacspec.
Yeah, I just ran into this and figured that this is pretty bad user experience. I don't know if there's a low effort way to fix this. But we should have it on the list to fix.
Another idea would be to build the dependencies as part of cargo hacspec
and compile out all functions with #[not_hacspec]
. Then this would fail in the Rust build system already.
from hacspec.
Another idea would be to build the dependencies as part of cargo hacspec and compile out all functions with #[not_hacspec]. Then this would fail in the Rust build system already.
Hum it would not work with cargo hacspec
but cargo build
. You could feature-out the non-hacspec parts of hacspec lib
. But then you could not include the testing code that needs the non-hacspec parts in the same crate.
from hacspec.
Related Issues (20)
- Split ed25519 into two separate crates HOT 2
- Unable to use hacspec in edition 2021 crates
- Using consts from other module fails HOT 3
- Replace im
- Return Result type
- Allow skipping the enum type when using variants
- Implement unary negation for natural number
- ^ operation not available for type bool
- A sequence of sequences
- Importing from the same crate
- Empty Tuple struct, does not work
- Add F* to the CI
- Bad name resolution in the case of external re-exported module HOT 1
- Type the AST more precisely, to avoid `unwrap`s and `panic`s
- Add result let binding
- F* backend: variants are extracted to constructors whose payloads are tuples
- Outdated README
- Cleanup warnings
- implementation of from_be_bytes in math_integers is missing HOT 1
- syn 2 breaks the build HOT 6
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 hacspec.