Comments (11)
Good news, with the stabilization of the feature return_position_impl_trait_in_trait in Rust 1.75 GGCAT now uses no unstable features.
The final transition to stable Rust is still blocked by a small change that needs to be made to the matchtigs library, for which I just made a pull request.
from ggcat.
I was talking with @jermp about this. Might I ask what nightly features are required in GGCAT? In general, nightly is highly unstable (some features on nightly might never make it into stable and, in fact, might be removed completely). Depending on beta or stable would be much more robust if there are only features being used that could be replaced by some macros or crates that work on stable.
from ggcat.
Hi, the nightly features I currently use on GGCAT are these:
#![feature(const_type_id)]
#![feature(drain_filter)]
#![feature(int_roundings)]
#![feature(let_chains)]
#![feature(new_uninit)]
#![feature(panic_info_message)]
#![feature(slice_group_by)]
#![feature(slice_partition_dedup)]
#![feature(thread_local)]
#![feature(impl_trait_in_assoc_type)]
I think almost all of them can be removed by implementing the features in a separate library,
But the impl_trait_in_assoc_type
feature is very handy and cannot be easily replaced by something else, since simple alternatives usually add an extra layer of indirection that could affect the performance.
In the next days I'll try to remove as much unstable features as possible, and see if I can also find a workaround for the last one.
from ggcat.
Hi,
Actually I tried to remove the
#![feature(impl_trait_in_assoc_type)]
and everything went smooth with the stable channel release.
from ggcat.
Hello,
thanks a lot for this tool, I'd like to experiment querying plasmids and AMR genes against the 661k bacterial dataset with it. I am having the same issue but I do not know rust, sorry. I get this error when trying to install in my cluster:
Compiling ggcat_kmers_transform v0.1.0 (~/ggcat/crates/kmers_transform)
error[E0635]: unknown feature `drain_filter`
--> crates/kmers_transform/src/lib.rs:2:12
|
2 | #![feature(drain_filter)]
| ^^^^^^^^^^^^
Compiling ggcat_assembler_minimizer_bucketing v0.1.0 (~/ggcat/crates/assembler_minimizer_bucketing)
For more information about this error, try `rustc --explain E0635`.
error: could not compile `ggcat_kmers_transform` (lib) due to previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile `ggcat_cmdline v0.1.0 (~/ggcat/crates/cmdline)`, intermediate artifacts can be found at `~/ggcat/target`.
... should I keep trying from time to time until there is a nightly version that does not break?
from ggcat.
What is your current rustc version?
from ggcat.
Hi, I worked on the removal of the nightly features, and now only three of them remain:
#![feature(impl_trait_in_assoc_type)]
#![feature(thread_local)]
#![feature(slice_partition_dedup)]
The updated code (that should compile on a wider range of nightly rust versions) is available in the dev branch
from ggcat.
Nowadays, you can use the rust-toolchain.toml
to pin to the nightly version of a certain date.
Modified example from the docs:
[toolchain]
channel = "nightly-2023-09-07"
from ggcat.
RPITIT FTW! Yay acronyms.
from ggcat.
Great! Keep us posted :)
from ggcat.
I managed to support stable even without the matchtigs library fix, so now GGCAT works on stable Rust >= 1.75 :)
from ggcat.
Related Issues (20)
- Compilation failed with error: `use of unstable library feature 'int_log'` HOT 1
- Plans to generate a GFA? HOT 1
- is there a way to get the kmer counts of the kmers in the produced unitigs? HOT 1
- different runs return different number of unitigs and distinct color subsets HOT 6
- GGCAT keeps panicking about too many open files HOT 1
- Error compiling using latest rust version HOT 2
- Build fails with `error[E0635]: unknown feature proc_macro_span_shrink` HOT 1
- [Request] Can you provide binaries?
- Interaction between `-m 0` and `--prefer-memory` causes a crash HOT 1
- Installation from scratch fail with file examples HOT 2
- Using ggcat-api in an external Rust project fails to build without including `dynamic-dispatch-proc-macro` in Cargo.toml HOT 3
- Is there any way to dump the whole colormap in a readable file ? HOT 2
- GGCAT API crash when building many graphs in memory from the same instance HOT 2
- GGCAT installation fails when compiling ggcat-api HOT 2
- Error 68 : Unfinished stream HOT 2
- Same flag `-f` for both `--forward-only` and `--colored-query-output-format` options in queries HOT 1
- Problem with GGCAT when using 32 threads HOT 1
- access datasets of origin HOT 2
- Issues with -d and -c flags (ggcat doesn't find sample in large color_mapping.in file) HOT 1
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 ggcat.