-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add some rust developer docs! #3150
Comments
syntax for specifying a specific branch when simultaneously working on sourmash-rs and external modules (e.g. a plugin that uses the rs interface) - from #3193 / sourmash-bio/sourmash_plugin_branchwater#348
And each time you push to the new sourmash branch, you'll need to run:
in the dependent repository to get it to recognize the updated dependency. |
this let me get tracing output: diff --git a/src/core/Cargo.toml b/src/core/Cargo.toml
index 91b76d62..7dfd9ffa 100644
--- a/src/core/Cargo.toml
+++ b/src/core/Cargo.toml
@@ -33,6 +33,7 @@ cfg-if = "1.0"
counter = "0.5.7"
csv = "1.3.0"
enum_dispatch = "0.3.13"
+env_logger = "0.11.3"
finch = { version = "0.6.0", optional = true }
fixedbitset = "0.4.0"
getrandom = { version = "0.2", features = ["js"] }
diff --git a/src/core/src/index/revindex/mod.rs b/src/core/src/index/revindex/mod.rs
index 0e3e443b..4b3c5bde 100644
--- a/src/core/src/index/revindex/mod.rs
+++ b/src/core/src/index/revindex/mod.rs
@@ -12,6 +12,7 @@ use getset::{Getters, Setters};
use nohash_hasher::BuildNoHashHasher;
use roaring::RoaringBitmap;
use serde::{Deserialize, Serialize};
+use env_logger::try_init;
use crate::collection::CollectionSet;
use crate::encodings::{Color, Colors, Idx};
@@ -591,6 +592,8 @@ mod test {
#[test]
fn revindex_load_and_gather_2() -> Result<()> {
+ let _ = env_logger::try_init();
+
let mut basedir = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
basedir.push("../../tests/test-data/gather/"); command to run w/trace output:
|
also: core release procedure! #2987 |
Since the tests in sourmash_plugin_branchwater are run with |
When developing sourmash-bio/sourmash_plugin_branchwater#354, I learned that to get the Rust code to first recompile with
|
Compile documentation for the project and all dependencies with |
To get the rust-analyzer VS Code extension working with an Anaconda installation of Rust, I needed to add to my "rust-analyzer.server.extraEnv": {
"CARGO": "/Users/olgabot/anaconda3/envs/branchwater-dev/bin/cargo",
"RUSTC": "/Users/olgabot/anaconda3/envs/branchwater-dev/bin/rustc",
}, Hoping to save others some headache in the future! |
Over in #3249, I asked:
and on slack, luiz responded:
note that (transferring this here because I was keeping #3249 open only because of this comment 😆 ) |
hmm, maturin import hook => automatically runs maturin develop when code changes are present in rust code.
|
Related to this, it seems to me that re-building
Her's an example build, which is a bit delayed because of a lock on the build due to And all that I changed for this build was adding a consuming variable:
to let _ = frequencies
.values_mut()
.map(| freq|
freq.ln()
); How does that trigger a full rebuild, especially of Here's a gif of the build, which took 5 minutes from 16:00 UTC to 16:05 UTC: (screencast was resized from 15MB to 10MB to be under the 10MB limit for file uploads to GitHub, sorry if it looks weird) Other PRs complain about this behavior (PyO3/maturin#504, rerun-io/rerun#3474), and say that updating maturin to
|
how to run the tests right: #3138 (comment)
The text was updated successfully, but these errors were encountered: