edgee-sdk

Crates.ioedgee-sdk
lib.rsedgee-sdk
version
sourcesrc
created_at2024-11-28 12:02:52.914194+00
updated_at2025-03-12 05:03:04.916789+00
descriptionThe full-stack edge platform for your edge oriented applications
homepage
repositoryhttps://github.com/edgee-cloud/sdk
max_upload_size
id1464274
Cargo.toml error:TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
Sacha Morard (SachaMorard)

documentation

README

Edgee

Edgee

Edgee SDK Library

Overview

The Edgee SDK Library provides functionality to retrieve and dynamically modify SDK content based on the version specified in the URL. This library includes functions to extract the SDK version from a URL, retrieve the corresponding SDK content, and modify the SDK paths to match the host configuration.

Usage

To retrieve the SDK content from a given URL, use the get_sdk_from_url function. This function takes a URL and a host as arguments and returns the SDK content wrapped in a <script> tag if successful, or an error message if not.

Example

let url = "https://example.com/sdk/v1.1.0.js";
let host = "example.com";
let sdk_content = get_sdk_from_url(url, host);
assert!(sdk_content.is_ok());

Installation

To use this library, add edgee-sdk as a dependency in your Cargo.toml:

[dependencies]
edgee-sdk = "1"
Commit count: 0

cargo fmt