Cargo Features

jlrs has no features set by default.

[dependencies]
jlrs = { version = "0.21.0", features = ["julia-1-6", "julia-1-7", "julia-1-8", "julia-1-9", "julia-1-10", "julia-1-11", "julia-1-12", "full", "full-no-rt", "local-rt", "async-rt", "tokio-rt", "tokio-net", "multi-rt", "async", "ccall", "f16", "complex", "jlrs-ndarray", "jlrs-derive", "lto", "diagnostics", "debug", "i686", "no-link", "yggdrasil", "windows", "macos", "docs"] }
julia-1-6

Julia version

Link Julia 1.6

Enables julia-1-6 of jl-sys and jlrs-macros

julia-1-7

Link Julia 1.7

Enables julia-1-7 of jl-sys and jlrs-macros

julia-1-8

Link Julia 1.8

Enables julia-1-8 of jl-sys and jlrs-macros

julia-1-9

Link Julia 1.9

Enables julia-1-9 of jl-sys and jlrs-macros

julia-1-10

Link Julia 1.10

Enables julia-1-10 of jl-sys and jlrs-macros

julia-1-11

Link Julia 1.11

Enables julia-1-11 of jl-sys and jlrs-macros

julia-1-12 docs?

Link Julia 1.12

Enables julia-1-12 of jl-sys and jlrs-macros

full docs? = ccall, complex, f16, jlrs-derive, jlrs-ndarray, local-rt, multi-rt, tokio-rt

Enable all features except any version features

full-no-rt = async, ccall, f16, jlrs-derive, jlrs-ndarray

Enable all features except any version features or runtimes

local-rt full?

Runtimes

Enable local runtime

Enables fast-tls of jl-sys

Affects handle::local_handle, runtime::sync_rt, util::test, runtime::builder

async-rt tokio-rt? = async, tokio

Enable async runtime

Enables fast-tls of jl-sys

Affects builder::async_builder, handle::async_handle, mt_handle::PoolBuilder, runtime::builder

tokio-rt full? tokio-net? = async-rt

Enable tokio as backing runtime

Affects executor::tokio_exec

tokio-net = tokio-rt

Enable tokio IO drivers

Enables net of tokio

multi-rt full?

Enable multithreaded runtime

Enables fast-tls of jl-sys

Affects handle::mt_handle, runtime::builder

async async-rt? full-no-rt? = async-channel, async-trait

Utilities

Enable task and channel traits used by the async runtime

Affects jlrs::async_util, frame::async_frame, target::Target.into_extended_async_target, target::ExtendedAsyncTarget, runtime::executor

ccall full? full-no-rt?

Enable ccall module for use from ccalled Rust functions

Enables ccall of jlrs-macros

Affects handle::ccall

f16 full? full-no-rt? = half

Enable using f16 as a layout for Float16 data

Affects layout::f16

complex full? = num-complex

Enable using num_complex::Complex as a layout for Complex data

Affects layout::complex

jlrs-ndarray full? full-no-rt? = ndarray

Enable converting a Julia array to an ArrayView(Mut) from ndarray

Affects convert::ndarray

jlrs-derive full? full-no-rt?

Enable derive macros

Enables derive of jlrs-macros

lto

Compile the support library with support for cross-language LTO.

Enables lto of jl-sys

diagnostics
debug

Target or link a specific Julia build or arch.

Link debug build of Julia

Enables debug of jl-sys

i686

Link 32-bits version of Julia on Linux

Enables i686 of jl-sys

Don't link Julia, useful when building a shared library that will be loaded by and used from Julia.

Enables no-link of jl-sys

yggdrasil

Compile from BinaryBuilder's cross-compilation environment

Enables yggdrasil of jl-sys

windows

Cross-compile to Windows

Enables windows of jl-sys and jlrs-macros

macos

Cross-compile to macOS

Enables macos of jl-sys

docs = full, julia-1-12

Used to generate docs for docs.rs

Enables docs of jl-sys

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

async-trait async?
async-channel async?
half f16?
ndarray jlrs-ndarray?

Enables ndarray ^0.15

tokio async-rt? tokio-net?
num-complex complex?