You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am facing strange behavior: when I am passing the absolute path to Lib::new method, it returns an error saying that it cannot find the file. However, calling canonicalize on the passed Path removes the problem. I wouldn't call it weird if the original path wouldn't be absolute, but it is
I've used this code to check if my suspicions are correct. I've used sharedlib and libloading crates as alternatives. The second test passes, and the first one fails on the third assert
The dynamic library I am using is compiled getset procedural macro, but I think it doesn't really matter and you can replace it with what you have at hand
The text was updated successfully, but these errors were encountered:
I am facing strange behavior: when I am passing the absolute path to
Lib::new
method, it returns an error saying that it cannot find the file. However, callingcanonicalize
on the passedPath
removes the problem. I wouldn't call it weird if the original path wouldn't be absolute, but it isI've used this code to check if my suspicions are correct. I've used
sharedlib
andlibloading
crates as alternatives. The second test passes, and the first one fails on the third assertI am using Linux machine with Ubuntu 16.04
The dynamic library I am using is compiled
getset
procedural macro, but I think it doesn't really matter and you can replace it with what you have at handThe text was updated successfully, but these errors were encountered: