Repository navigation
Releases
Moss iOS SDK v0.17.0
Moss iOS SDK v0.17.0.
SwiftPM consumption
.package(url: "https://github.com/usemoss/moss", from: "0.17.0"),Package.swift binary target
.binaryTarget(
name: "MossC",
url: "https://github.com/usemoss/moss/releases/download/v0.17.0/Moss.xcframework.zip",
checksum: "b9718f1b5bb6ad36125747c7a44ed04fc78af5fc2533500ab6296bf371cf1ef1"
)SHA-256: b9718f1b5bb6ad36125747c7a44ed04fc78af5fc2533500ab6296bf371cf1ef1
What's in the zip
Moss.xcframeworkwith the iOS device (arm64) and simulator (arm64) slicesLICENSE.txt- the license of the xcframeworkLICENSE-THIRD-PARTY.txt- licenses of the third-party code both slices link
License
The xcframework is licensed under the PolyForm Shield License 1.0.0, not under this repository's BSD 2-Clause License.
Required Notice: Copyright InferEdge Inc. (https://inferedge.dev)
Moss Android SDK v0.33.0
Moss Android SDK v0.33.0.
AAR: moss-android-0.33.0.aar (arm64-v8a, minSdk 24, namespace dev.usemoss.moss).
SHA-256: a535bb8675ec4544fab24f016ff3e625bd45e394272dd6cc112e885a68738c08
Added
ClientOptions, the new last argument of bothMossClientconstructors,
haskeepModels, off by default. With it on, each embedding model the client
loads that the project's clients share stays loaded after the client closes,
so the next client of the project in the app loads a cached index without
opening the model again, once its own grant for the same artifact arrives,
until the grant the model was opened under is within 30 seconds of expiring,
at most about four and a half minutes after it was opened. A private copy,
which a client opens while another client is still opening the same model,
is not kept. Kotlin code compiled against an earlier release that calls the
authenticator constructor withoutbaseUrlmust be compiled again, with no
change to its source.releaseMemoryon an open client and the app's trim callbacks free at once
each kept model that no client or session holds. The first client built with
keepModelsregisters trim callbacks for the process that stay after every
client closes, so a trim frees kept models while no client is open too.
Changed
- Breaking change:
MossClient.sessionthrows theMossExceptionof
its load of the cloud index of the same name when that load fails, for
example codeNETWORKwhen the Moss cloud cannot be reached or
DESERIALIZATIONwhen the index's model artifact provenance does not
match. It used to return an empty session, which a laterpushIndexcould
push over the cloud index. An index that does not exist yet, or a name the
cloud cannot address, still opens an empty session, and
SessionOptions(autoLoadOnInit = false)skips the load. A foundation model
such as the defaultmoss-litelmstill checks the credentials when the
session opens, over the network for a client with a project key, so only
modelId = "custom"opens with no network. Requires a packed
libmoss_jni.sobuilt from the matching libmoss. - A client or session that reuses an embedding model another client of the
project holds, or one thatkeepModelskept, now asks the issuer for its own
grant first. That adds one round trip and still skips the decrypt and session
start. A client the issuer refuses now fails to load the model instead of
using one another client opened.
Fixed
- A session keeps its saved snapshot to itself while it serves vectors from
it, also aftersaveToDiskwrites a new generation.loadFromDiskand
saveToDiskof the same session name and cache path in a second session,
in this app or another process, throwMossExceptionwith codeINTERNAL
and the message "The saved session snapshot is open in another session."
until the first session's native teardown finishes.close()returns at
once and queues that teardown, which also sends the session's final
telemetry, for up to 2 seconds, so a load or save right afterclose()
can still throw. A save used to replace the file that held the lock, so
after one save a second session could load and save the same snapshot
beside the first and overwrite its saves. The lock is the file
session.lockin the session's directory. Loading from a directory the
app cannot write works when the snapshot already has itssession.lock,
which every save writes, and fails otherwise. A snapshot that an earlier
version saved has none. Add an emptysession.lockfile to its directory,
or load a copy: while nothing saves to the snapshot, copy its directory
under the same name into another directory, make the copy writable by the
app, and pass that other directory as the cache path. A.mossvecthat
loadIndexmaps fromcachePathis locked through a.lockfile beside
it. A second client that loads the same index from the samecachePath
while the first holds it does not throw: it keeps that index's vectors in
memory instead of mapping the file. Earlier versions take neither lock
file, so a process on one of them and a process on this version do not
lock each other out. Keep every process on an earlier version stopped
while a process on this version has the same cache path open. Requires a
packedlibmoss_jni.sobuilt from the matching libmoss.
Add it to an app module with implementation(files(...)). It is a file AAR, not a Maven Central package.
License
The AAR is licensed under the PolyForm Shield License 1.0.0, not under this repository's BSD 2-Clause License. LICENSE.txt holds the terms. The AAR carries it at META-INF/LICENSE.txt, and at assets/moss/LICENSE.txt beside the licenses of the third-party code it links.
Required Notice: Copyright InferEdge Inc. (https://inferedge.dev)
libmoss v0.33.0
Precompiled C SDK binaries for the Moss SDK.
Added
moss_client_new_with_options,moss_client_new_with_device_id_and_options,moss_client_new_with_authenticator_and_optionsandmoss_client_new_with_authenticator_device_id_and_optionstake the arguments ofmoss_client_new,moss_client_new_with_device_id,moss_client_new_with_authenticatorandmoss_client_new_with_authenticator_and_device_id, plus aconst MossClientOptions *beforeout. NULL options are the defaults, which the constructors without options use. Zero aMossClientOptions, then setstruct_sizetosizeof(MossClientOptions)andversiontoMOSS_CLIENT_OPTIONS_VERSION, 1. A smallerstruct_size, another version or an unknown flag bit fails withERR_INVALID_ARG. TheMOSS_CLIENT_OPTIONS_FLAG_KEEP_MODELSflag, off by default, keeps each model the client loads after the last client or session that uses it is freed, for later clients of the same project in the process, until the grant it was opened under is within 30 seconds of expiring. A client created then loads a cached index without opening the model again, once its own grant for the same artifact arrives. The flag works on every platform, iOS and Android included.moss_client_release_memoryfrees at once each kept model that no client or session holds. With a NULL client it frees only those models and writes 0 toout_unloaded, instead of failing withERR_NULL_POINTER, so a host can answer memory pressure while no client is open.
Changed
- Breaking change:
moss_client_sessionandmoss_client_session_v2fail when the load of the cloud index of the same name fails, with that load's code, and leave*outNULL. For example,ERR_CLOUDwhen the Moss cloud cannot be reached,ERR_UNAUTHORIZEDwhen the service rejects the credentials or the project is over its usage limit,ERR_INVALID_ARGwhen the service refuses the index's model artifact with HTTP 409, andERR_DESERIALIZATIONwhen the artifact's provenance is malformed or does not match the downloaded index. They used to log the failure and return an empty session, which a latermoss_session_push_indexcould push over the cloud index. An index that does not exist yet, or a name the cloud cannot address, still opens an empty session.MOSS_SESSION_OPTIONS_V2_FLAG_SKIP_AUTO_LOAD_ON_INITonmoss_client_session_v2skips the load, whichmoss_client_sessioncannot; unlessmodel_idiscustom, opening still checks the project credentials, which a client with a project key does over the network. moss_set_model_cache_dir()installs the panic hook, asmoss_sdk_version()does, so a host that never asks for the version still gets the panic message inmoss-panic.login the model cache directory. A panic aborts the process, as it did before, and the README says so under Error Handling.- A client or session that reuses an embedding model another client of the project holds, or one that
MOSS_CLIENT_OPTIONS_FLAG_KEEP_MODELSkept, now asks the issuer for its own grant first. That adds one round trip and still skips the decrypt and session start. A client the issuer refuses now fails to load the model instead of using one another client opened.
Fixed
- A session keeps its saved snapshot to itself while it serves vectors from it, also after
moss_session_save_to_diskwrites a new generation.moss_session_load_from_diskandmoss_session_save_to_diskof the same session name and cache path in a second session, in this process or another, fail withERR_INTERNALand the message "The saved session snapshot is open in another session." until the first session is freed. A save used to replace the file that held the lock, so after one save a second session could load and save the same snapshot beside the first and overwrite its saves. The lock is the filesession.lockin the session's directory, and it holds on Windows too. Loading from a directory this process cannot write works when the snapshot already has itssession.lock, which every save writes, and fails otherwise. A snapshot that an earlier version saved has none. Add an emptysession.lockfile to its directory, or load a copy: while nothing saves to the snapshot, copy its directory under the same name into another directory, make the copy writable by the process, and pass that other directory as the cache path. On iOS and Android, a.mossvecthatmoss_client_load_indexmaps fromcache_pathis locked through a.lockfile beside it. A second client that loads the same index from the samecache_pathwhile the first holds it does not fail: it keeps that index's vectors in memory instead of mapping the file. Earlier versions take neither lock file, so a process on one of them and a process on this version do not lock each other out. Keep every process on an earlier version stopped while a process on this version has the same cache path open. - A client, session or
MossInferencebuilt beforefork()works in the forked child instead of hanging there. The child starts a runtime of its own for it on first use, and an inference client its own connections too, keeps the indexes the parent loaded, and starts its own telemetry. A child whose runtime fails to start with an I/O error fails that call withERR_INTERNAL, and its next call tries again. A fork while another thread is inside a call on the same client or session is not supported. A query in a forked child no longer waits forever once the parent has run a query.
Platforms
| Archive | OS | Arch |
|---|---|---|
libmoss-v0.33.0-aarch64-apple-darwin.tar.gz |
macOS | ARM64 (Apple Silicon) |
libmoss-v0.33.0-x86_64-unknown-linux-gnu.tar.gz |
Linux | x86_64 |
libmoss-v0.33.0-aarch64-unknown-linux-gnu.tar.gz |
Linux | ARM64 |
libmoss-v0.33.0-x86_64-pc-windows-msvc.tar.gz |
Windows | x86_64 |
Contents
Each archive contains:
include/libmoss.h- C headerlib/libmoss.dylib,lib/libmoss.soorlib/moss.dll- shared libraryLICENSE.txt- the license of the libraryLICENSE-THIRD-PARTY.txt- licenses of the third-party code the library links
Windows archives also contain the DLL import library lib/moss.dll.lib.
License
The library is licensed under the PolyForm Shield License 1.0.0, not under this repository's BSD 2-Clause License.
Required Notice: Copyright InferEdge Inc. (https://inferedge.dev)
Usage
Extract, then compile and link. The macOS dylib ships with an
@rpath/libmoss.dylib install name, so pass an -rpath that
resolves to lib/ or the binary aborts at launch with
"Library not loaded: @rpath/libmoss.dylib ... no LC_RPATH's found":
# macOS
clang your_app.c -o your_app -Iinclude -Llib -lmoss \
-Wl,-rpath,@loader_path/lib \
-framework Security -framework SystemConfiguration
# Linux
gcc your_app.c -o your_app -Iinclude -Llib -lmoss -lpthread -lm -ldlMoss iOS SDK v0.16.0
Moss iOS SDK v0.16.0.
SwiftPM consumption
.package(url: "https://github.com/usemoss/moss", from: "0.16.0"),Package.swift binary target
.binaryTarget(
name: "MossC",
url: "https://github.com/usemoss/moss/releases/download/v0.16.0/Moss.xcframework.zip",
checksum: "054bad915dea8f219bde016f36f69a9559277975e316da7b45403a780918c2ab"
)SHA-256: 054bad915dea8f219bde016f36f69a9559277975e316da7b45403a780918c2ab
What's in the zip
Moss.xcframeworkwith the iOS device (arm64) and simulator (arm64) slicesLICENSE.txt- the license of the xcframeworkLICENSE-THIRD-PARTY.txt- licenses of the third-party code both slices link
License
The xcframework is licensed under the PolyForm Shield License 1.0.0, not under this repository's BSD 2-Clause License.
Required Notice: Copyright InferEdge Inc. (https://inferedge.dev)
libmoss v0.32.0
Precompiled C SDK binaries for the Moss SDK.
Added
- Each archive carries
LICENSE.txt, the PolyForm Shield License 1.0.0 terms of the library. The release notes name them too.
Changed
- A new client loads an index from
cache_pathin about one round trip to the Moss cloud when another client or session in the same process has the index's model loaded. Clients in one process share the project's token and each loaded embedding model, and on macOS, Linux and Windows also their connections to the cloud; every load still checks the cloud version of the index. Freeing the last client or session that uses a model still frees the model at once, on every platform, so a client created after that opens the model again. iOS and Android builds open connections per client. A cachedmoss_client_load_indexalso asks for the index metadata and its model provenance at once. From Europe, about 130 ms from the Moss cloud, a cached 960-document index loaded in the first client in a process in 1.9 to 2.2 s instead of 2.5 to 2.8 s, and in 200 to 290 ms instead of 2.5 to 2.8 s in a new client that found its model loaded; a cached 50,400-document index loaded in such a client in 0.8 to 1.4 s instead of 3.0 to 3.1 s. A client opened several idle minutes after the last one was freed reconnects and opens the model again, which took 1.6 to 1.7 s. moss_client_load_indexandmoss_client_load_indexesneed less memory. The index file, downloaded or read fromcache_path, is freed once it is parsed, and its vectors and documents move into the loaded index instead of being copied. A load that writes the download tocache_pathfrees the file once it is written and copies the documents into the index. On an Apple M2, loading 250,000 documents with 384-dimension vectors peaked at 943 MB instead of 1,550 MB, and at about 1,210 MB when the load writes the download tocache_path. Auto-refresh of an index loaded withoutcache_pathinstalls a newer version the same way. Search results and cache files are unchanged.- Queries with a metadata filter test it while they score the vectors, in parallel on large indexes, and skip the vectors of documents it rejects. The filter values of
$gt,$gte,$lt,$lteand$nearare parsed once per query instead of once per document. On an Apple M2, an embedding or hybrid query over 100,000 documents with 1,536-dimension vectors and a filter that keeps 5% of them ran about six times faster. Results are unchanged. - Creating an index whose name is taken returns
ERR_INVALID_ARGand the message "An index with this name already exists. Delete it or choose another name.", and a call the service refuses because a build for the index is still running, such as adding documents during a build, fails the same way with "A build is already running for this index. Wait for it to finish, then try again.", instead of the generic "The Moss service rejected the request as invalid.". The code is unchanged, andmoss_last_error_detail()still names the service's code.
Deprecated
- libmoss versions below 0.24.0 reach end of support on 2026-12-17 and will stop working then. Upgrade to this release or a later one.
Fixed
moss_client_query,moss_client_query_multi_indexandmoss_session_queryfail withERR_INVALID_ARGwhenfilter_jsonis not valid UTF-8. They used to drop the filter and return unfiltered results.moss_client_get_docs,moss_client_delete_docs,moss_session_get_docsandmoss_session_delete_docsfail withERR_NULL_POINTERfor a NULL id and withERR_INVALID_ARGfor one that is not valid UTF-8. They used to drop such ids, somoss_client_get_docsreturned every document of the index when no id was left.moss_client_delete_docsandmoss_session_delete_docsalso fail withERR_NULL_POINTERfor a NULLdoc_idswith a nonzero count, where they used to go ahead with an empty id list.moss_client_create_index,moss_client_add_docsandmoss_session_add_docsfail withERR_INVALID_ARGfor a metadata key or value that is NULL or not valid UTF-8, and for apayloadthat is not valid UTF-8. They used to drop the entry or the payload.moss_client_create_index,moss_client_create_index_from_files,moss_client_add_docsandmoss_client_delete_docscalls on one index run one at a time across everyMossClientthat uses the same loaded copy of the core. Each call keeps the index until it returns, the wait for its build included, so parallel writes to one index take as long as the same writes one after another.moss_session_push_indexwaits its turn with them, but keeps the index only until the service accepts the push, not through its build. Calls on different indexes still run in parallel.moss_client_delete_indexdoes not wait for them, since the service cancels a running build of the index it deletes. Calls on one index through separate clients used to reach the service together, which refused some of them and reported others as done without storing them: of three parallelmoss_client_add_docscalls with one new document each, only one document was stored. A call the service refuses because a build of the index is running, such as one started from another process, is sent again, with waits that grow from about one second to eight and add up to at most 60 seconds. If the service still refuses it after those waits, it returnsERR_INVALID_ARGand the message "A build is already running for this index. Wait for it to finish, then try again.", as it used to on the first refusal. Writes to one index from separate copies of the core, processes or hosts do not wait for each other. Such a write is sent again, with the same waits, only when the service refuses it withBUILD_IN_PROGRESS. The Moss cloud service refuses a write that overlaps a running build, but an index service without that refusal can accept the write and drop it.
Platforms
| Archive | OS | Arch |
|---|---|---|
libmoss-v0.32.0-aarch64-apple-darwin.tar.gz |
macOS | ARM64 (Apple Silicon) |
libmoss-v0.32.0-x86_64-unknown-linux-gnu.tar.gz |
Linux | x86_64 |
libmoss-v0.32.0-aarch64-unknown-linux-gnu.tar.gz |
Linux | ARM64 |
libmoss-v0.32.0-x86_64-pc-windows-msvc.tar.gz |
Windows | x86_64 |
Contents
Each archive contains:
include/libmoss.h- C headerlib/libmoss.dylib,lib/libmoss.soorlib/moss.dll- shared libraryLICENSE.txt- the license of the libraryLICENSE-THIRD-PARTY.txt- licenses of the third-party code the library links
Windows archives also contain the DLL import library lib/moss.dll.lib.
License
The library is licensed under the PolyForm Shield License 1.0.0, not under this repository's BSD 2-Clause License.
Required Notice: Copyright InferEdge Inc. (https://inferedge.dev)
Usage
Extract, then compile and link. The macOS dylib ships with an
@rpath/libmoss.dylib install name, so pass an -rpath that
resolves to lib/ or the binary aborts at launch with
"Library not loaded: @rpath/libmoss.dylib ... no LC_RPATH's found":
# macOS
clang your_app.c -o your_app -Iinclude -Llib -lmoss \
-Wl,-rpath,@loader_path/lib \
-framework Security -framework SystemConfiguration
# Linux
gcc your_app.c -o your_app -Iinclude -Llib -lmoss -lpthread -lm -ldlMoss Android SDK v0.32.0
Moss Android SDK v0.32.0.
AAR: moss-android-0.32.0.aar (arm64-v8a, minSdk 24, namespace dev.usemoss.moss).
SHA-256: d59042e00235e64ddb311f9afa93adbb9394709e91c215907e72b13965a06278
Added
- License. The AAR carries
LICENSE.txt, the PolyForm Shield License 1.0.0
terms of the SDK, atMETA-INF/LICENSE.txtand beside the notices at
assets/moss/LICENSE.txt. The release attaches it and its notes name the terms.
Changed
- A client created after another one in the same app reuses the project's token
instead of exchanging the project key again, and a load fromcachePathasks
for the index metadata and its model provenance at once. From Europe, the
token exchange took about 0.6 s of every new client's load, and the provenance
lookup one more round trip after the metadata. Closing the last client still
frees its model and connections at once. loadIndexandloadIndexesneed less memory. The index file, downloaded or
read fromcachePath, is freed once it is parsed, and its vectors and
documents move into the loaded index instead of being copied. A load that
writes the download tocachePathfrees the file once it is written and
copies the documents into the index. On an Apple M2, loading 250,000 documents
with 384-dimension vectors peaked at 943 MB instead of 1,550 MB, and at about
1,210 MB when the load writes the download tocachePath. Auto-refresh of an
index loaded withoutcachePathinstalls a newer version the same way. Search
results and cache files are unchanged.- Queries with a metadata filter test it while they score the vectors, in
parallel on large indexes, and skip the vectors of documents it rejects. The
filter values of$gt,$gte,$lt,$lteand$nearare parsed once per
query instead of once per document. On an Apple M2, an embedding or hybrid
query over 100,000 documents with 1,536-dimension vectors and a filter that
keeps 5% of them ran about six times faster. Results are unchanged. - Creating an index whose name is taken throws a
MossExceptionwhose code
isMossErrorCode.INVALID_ARGUMENTand the message "An index with this name
already exists. Delete it or choose another name.", and a call the service
refuses because a build for the index is still running, such as adding
documents during a build, throws the same way with "A build is already
running for this index. Wait for it to finish, then try again.", instead of
the generic "The Moss service rejected the request as invalid.". The code is
unchanged, anddetailstill names the service's code.
Fixed
- A string that holds an unpaired surrogate or U+0000, which a UTF-8 C string
cannot hold, throwsMossException.InvalidArgumentas a metadata filter of
MossClient.query,MossClient.queryMultiIndexorMossSession.query, as an
id ofdeleteDocs, and as a metadata entry or payload ofMossSession.addDocs.
The filter used to be dropped, so the query returned unfiltered results, and
the id, entry or payload used to be dropped too. MossClient.createIndex,addDocsanddeleteDocscalls on one index run
one at a time across everyMossClientthat uses the same loaded copy of the
core. Each call keeps the index until it returns, the wait for its build
included, so parallel writes to one index take as long as the same writes one
after another.MossSession.pushIndexwaits its turn with them, but keeps the
index only until the service accepts the push, not through its build. Calls on
different indexes still run in parallel.deleteIndexdoes not wait for them,
since the service cancels a running build of the index it deletes. Parallel
calls on one index used to reach the service together, which refused some of
them and reported others as done without storing them: of three parallel
addDocscalls with one new document each, only one document was stored. A
call the service refuses because a build of the index is running, such as one
started from another process, is sent again, with waits that grow from about
one second to eight and add up to at most 60 seconds. If the service still
refuses it after those waits, it throws aMossExceptionwhose code is
MossErrorCode.INVALID_ARGUMENTand the message "A build is already running
for this index. Wait for it to finish, then try again.", as it used to on the
first refusal. Writes to one index from separate copies of the core, processes
or hosts do not wait for each other. Such a write is sent again, with the same
waits, only when the service refuses it withBUILD_IN_PROGRESS. The Moss
cloud service refuses a write that overlaps a running build, but an index
service without that refusal can accept the write and drop it.- The README says that Moss searches only the indexes a call names in
indexes,
so a call that leaves it out runs no search, as the gateway does.
Add it to an app module with implementation(files(...)). It is a file AAR, not a Maven Central package.
License
The AAR is licensed under the PolyForm Shield License 1.0.0, not under this repository's BSD 2-Clause License. LICENSE.txt holds the terms. The AAR carries it at META-INF/LICENSE.txt, and at assets/moss/LICENSE.txt beside the licenses of the third-party code it links.
Required Notice: Copyright InferEdge Inc. (https://inferedge.dev)
Moss iOS SDK v0.15.0
Moss iOS SDK v0.15.0.
SwiftPM consumption
.package(url: "https://github.com/usemoss/moss", from: "0.15.0"),Package.swift binary target
.binaryTarget(
name: "MossC",
url: "https://github.com/usemoss/moss/releases/download/v0.15.0/Moss.xcframework.zip",
checksum: "17c98a935dae8eb1ca3953599d8b6e1654abb2076b4e2a90bbd869cdcda4dcc7"
)SHA-256: 17c98a935dae8eb1ca3953599d8b6e1654abb2076b4e2a90bbd869cdcda4dcc7
What's in the zip
Moss.xcframeworkwith the iOS device (arm64) and simulator (arm64) slicesLICENSE-THIRD-PARTY.txt- licenses of the third-party code both slices link
Moss iOS SDK v0.14.0
Moss iOS SDK v0.14.0.
SwiftPM consumption
.package(url: "https://github.com/usemoss/moss", from: "0.14.0"),Package.swift binary target
.binaryTarget(
name: "MossC",
url: "https://github.com/usemoss/moss/releases/download/v0.14.0/Moss.xcframework.zip",
checksum: "a0b5cdfe735d2c24539de64f768af82b8dbeb790065f3f23227bf0ed03e81990"
)SHA-256: a0b5cdfe735d2c24539de64f768af82b8dbeb790065f3f23227bf0ed03e81990
What's in the zip
Moss.xcframeworkwith the iOS device (arm64) and simulator (arm64) slicesLICENSE-THIRD-PARTY.txt- licenses of the third-party code both slices link
libmoss v0.31.0
Precompiled C SDK binaries for the Moss SDK.
Changed
moss_inference_tasks_createandmoss_inference_tasks_runtakeapi_keyin their call options, and send only that call's key asX-Moss-Provider-Key, for the task's model calls. They never send the client'sapi_key, which is formoss_inference_responses_create, so without a key in the call options no provider key is sent; an empty one fails withERR_INVALID_ARGbefore any request. No other task call sends it, and one givenapi_keyfails withERR_INVALID_ARG.
Platforms
| Archive | OS | Arch |
|---|---|---|
libmoss-v0.31.0-aarch64-apple-darwin.tar.gz |
macOS | ARM64 (Apple Silicon) |
libmoss-v0.31.0-x86_64-unknown-linux-gnu.tar.gz |
Linux | x86_64 |
libmoss-v0.31.0-aarch64-unknown-linux-gnu.tar.gz |
Linux | ARM64 |
libmoss-v0.31.0-x86_64-pc-windows-msvc.tar.gz |
Windows | x86_64 |
Contents
Each archive contains:
include/libmoss.h- C headerlib/libmoss.dylib,lib/libmoss.soorlib/moss.dll- shared libraryLICENSE-THIRD-PARTY.txt- licenses of the third-party code the library links
Windows archives also contain the DLL import library lib/moss.dll.lib.
Usage
Extract, then compile and link. The macOS dylib ships with an
@rpath/libmoss.dylib install name, so pass an -rpath that
resolves to lib/ or the binary aborts at launch with
"Library not loaded: @rpath/libmoss.dylib ... no LC_RPATH's found":
# macOS
clang your_app.c -o your_app -Iinclude -Llib -lmoss \
-Wl,-rpath,@loader_path/lib \
-framework Security -framework SystemConfiguration
# Linux
gcc your_app.c -o your_app -Iinclude -Llib -lmoss -lpthread -lm -ldlMoss Android SDK v0.31.0
Moss Android SDK v0.31.0.
AAR: moss-android-0.31.0.aar (arm64-v8a, minSdk 24, namespace dev.usemoss.moss).
SHA-256: e2987999dac2e245843624070c2980e3b0f79134b99e695f46e0d66e37edf1fa
Changed
tasks.createandtasks.runtakeapiKey, and send only that call's key as
X-Moss-Provider-Key, for the task's model calls. They never send the client's
apiKey, which is forresponses, so without a key in the call no provider key
is sent; a blank one throws
IllegalArgumentExceptionbefore any request. The other task calls never send
it.
Add it to an app module with implementation(files(...)). It is a file AAR, not a Maven Central package.