https://github.com/termoshtt/julia.rs
WIP: Rust binding to Julia
https://github.com/termoshtt/julia.rs
Last synced: 7 months ago
JSON representation
WIP: Rust binding to Julia
- Host: GitHub
- URL: https://github.com/termoshtt/julia.rs
- Owner: termoshtt
- License: mit
- Created: 2019-01-31T14:24:13.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-06-01T19:09:37.000Z (almost 7 years ago)
- Last Synced: 2025-01-07T16:27:05.893Z (about 1 year ago)
- Language: Rust
- Homepage:
- Size: 43.9 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# julia.rs
[](https://dev.azure.com/termoshtt/julia.rs/_build/latest?definitionId=4&branchName=master)
WIP: Rust binding to Julia
Run example
-----------
You have to expose the shared library (*cdylib* in Rust) to julia.
`cargo build` will put the shared library at `target/debug` directory, and you need to specify it:
```
cargo build
LD_LIBRARY_PATH=$PWD/target/debug julia example.jl
```
For `cargo build --release`, it becomes `target/release`.
Link to libjulia.so
--------------------
If you download bare julia binary (e.g. on Ubuntu), you may need to set `LD_LIBRARY_PATH` to link them.
This will be skipped when you use package manager e.g. Yum/DNF, Pacman and others.
```
export LD_LIBRARY_PATH=$HOME/Download/julia-1.1.1/lib:$HOME/Download/julia-1.1.1/lib/julia
```