diff --git a/tree_compresser/Cargo.toml b/tree_compresser/Cargo.toml
index 8a5b366..bf42c02 100644
--- a/tree_compresser/Cargo.toml
+++ b/tree_compresser/Cargo.toml
@@ -15,3 +15,8 @@ name = "tree_traverser"
 crate-type = ["cdylib"]
 path = "./rust_src/lib.rs"
 
+[patch.'https://github.com/ecmwf/rsfdb']
+rsfdb = { path = "../rsfdb" }
+
+[patch.'https://github.com/ecmwf-projects/rsfindlibs']
+rsfindlibs = { path = "../rsfindlibs" }
\ No newline at end of file