!IMPORTANT: All the properties in this config (except for "name") are relevant only for providers who provide effector modules. If you are not a provider - properties in this config will be ignored when you deploy your code. But they will still have effect when running using 'fluence service repl' command. This config defines Marine Module. You can use fluence module new
command to generate a template for new module
Property | Type | Required | Description |
---|---|---|---|
name |
string | Yes | "name" property from the Cargo.toml (for module type "rust") or name of the precompiled .wasm file (for module type "compiled") |
version |
number | Yes | |
envs |
object | No | environment variables accessible by a particular module with standard Rust env API like this: std::env::var(IPFS_ADDR_ENV_NAME). Please note that Marine adds three additional environment variables. Module environment variables could be examined with repl |
loggerEnabled |
boolean | No | Set true to allow module to use the Marine SDK logger |
loggingMask |
number | No | manages the logging targets, described in detail: https://fluence.dev/docs/marine-book/marine-rust-sdk/developing/logging#using-target-map |
maxHeapSize |
string | No | DEPRECATED. Use totalMemoryLimit service property instead. Max size of the heap that a module can allocate in format: [number][whitespace?][B] where ? is an optional field and B is one of the following: kB, KB, kiB, KiB, KIB, mB, MB, miB, MiB, MIB, gB, GB, giB, GiB, GIB |
mountedBinaries |
object | No | A map of binary executable files that module is allowed to call. Example: curl: /usr/bin/curl |
type |
string | No | Module type "compiled" is for the precompiled modules. Module type "rust" is for the source code written in rust which can be compiled into a Marine module Possible values are: rust , compiled . |
volumes |
object | No | A map of accessible files and their aliases. Aliases should be used in Marine module development because it's hard to know the full path to a file |
environment variables accessible by a particular module with standard Rust env API like this: std::env::var(IPFS_ADDR_ENV_NAME). Please note that Marine adds three additional environment variables. Module environment variables could be examined with repl
Property | Type | Required | Description |
---|---|---|---|
Environment_variable_name |
string | No | Environment variable value |
A map of binary executable files that module is allowed to call. Example: curl: /usr/bin/curl
Property | Type | Required | Description |
---|---|---|---|
Mounted_binary_name |
string | No | Path to a mounted binary |
A map of accessible files and their aliases. Aliases should be used in Marine module development because it's hard to know the full path to a file
Property | Type | Required | Description |
---|---|---|---|
Alias |
string | No | path |