[box]
name = "StringBox"
version = "1.0.0"
description = "String operations Box"
author = "Nyash Team"

[provides]
boxes = ["StringBox"]

[StringBox]
type_id = 13

[StringBox.lifecycle]
birth = { id = 0 }
fini  = { id = 4294967295 }

[StringBox.methods.length]
id = 1
args = []
returns = { type = "i64" }

[StringBox.methods.toUtf8]
id = 6
args = []
returns = { type = "string" }

[implementation]
ffi_version = 1
thread_safe = true

[artifacts]
windows = "target/x86_64-pc-windows-msvc/release/nyash_string_plugin.dll"
linux   = "target/release/libnyash_string_plugin.so"
macos   = "target/release/libnyash_string_plugin.dylib"
