edgee-dc-sdk 1.9.0

The full-stack edge platform for your edge oriented applications
Documentation
  • Coverage
  • 23.08%
    3 out of 13 items documented3 out of 5 items with examples
  • Size
  • Source code size: 373.1 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 130.5 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 14s Average build duration of successful builds.
  • all releases: 14s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • SachaMorard

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"