Compare commits

..

1 Commits

Author SHA1 Message Date
Benjamin Eckel
a4eb1da47b fix(php-sdk): fix exception spelling 2022-11-28 19:23:08 -06:00
12 changed files with 40 additions and 11 deletions

View File

@@ -7,7 +7,7 @@ name: Release
env:
RUNTIME_MANIFEST: runtime/Cargo.toml
RUNTIME_CRATE: libextism
RUNTIME_CRATE: extism-runtime
RUSTFLAGS: -C target-feature=-crt-static
ARTIFACT_DIR: release-artifacts

View File

@@ -1,6 +1,6 @@
{
"name": "@extism/runtime-browser",
"version": "0.0.1",
"version": "0.0.1-rc.12",
"description": "Extism runtime in the browser",
"scripts": {
"build": "node build.js && tsc --emitDeclarationOnly --outDir dist",

View File

@@ -4,7 +4,7 @@ defmodule Extism.MixProject do
def project do
[
app: :extism,
version: "0.0.1",
version: "0.0.1-rc.6",
elixir: "~> 1.14",
start_permanent: Mix.env() == :prod,
deps: deps(),

View File

@@ -1,6 +1,6 @@
cabal-version: 2.4
name: extism
version: 0.0.1
version: 0.0.1.0
-- A short (one-line) description of the package.
synopsis: Extism bindings

View File

@@ -1,6 +1,6 @@
[package]
name = "libextism"
version = "0.0.1"
version = "0.0.0"
edition = "2021"
authors = ["The Extism Authors", "oss@extism.org"]
license = "BSD-3-Clause"

View File

@@ -1,6 +1,6 @@
[package]
name = "extism-manifest"
version = "0.0.1"
version = "0.0.1-rc.6"
edition = "2021"
authors = ["The Extism Authors", "oss@extism.org"]
license = "BSD-3-Clause"

View File

@@ -1,6 +1,6 @@
{
"name": "@extism/extism",
"version": "0.0.1",
"version": "0.0.1-rc.6",
"description": "Extism Host SDK for Node",
"keywords": [
"extism",

29
php/src/generate.php Normal file
View File

@@ -0,0 +1,29 @@
<?php
require_once "vendor/autoload.php";
function generate() {
return (new FFIMe\FFIMe("libextism.".soext()))
->include("extism.h")
->showWarnings(false)
->codeGen('ExtismLib', __DIR__.'/ExtismLib.php');
}
function soext() {
$platform = php_uname("s");
switch ($platform) {
case "Darwin":
return "dylib";
case "Linux":
return "so";
case "Windows":
return "dll";
default:
throw new Exception("Extism: unsupported platform ".$platform);
}
}
if (!file_exists(__DIR__."/ExtismLib.php")) {
generate();
}

View File

@@ -1,6 +1,6 @@
[tool.poetry]
name = "extism"
version = "0.0.1"
version = "0.0.1-rc.6"
description = "Extism Host SDK for python"
authors = ["The Extism Authors <oss@extism.org>"]
license = "BSD-3-Clause"

View File

@@ -1,5 +1,5 @@
# frozen_string_literal: true
module Extism
VERSION = "0.0.1"
VERSION = "0.0.1.rc6"
end

View File

@@ -1,6 +1,6 @@
[package]
name = "extism-runtime"
version = "0.0.1"
version = "0.0.1-rc.6"
edition = "2021"
authors = ["The Extism Authors", "oss@extism.org"]
license = "BSD-3-Clause"

View File

@@ -1,6 +1,6 @@
[package]
name = "extism"
version = "0.0.1"
version = "0.0.1-rc.6"
edition = "2021"
authors = ["The Extism Authors", "oss@extism.org"]
license = "BSD-3-Clause"