mirror of
https://github.com/extism/extism.git
synced 2026-01-12 15:28:05 -05:00
Compare commits
1 Commits
fix-releas
...
fix-php-sp
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a4eb1da47b |
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@@ -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
|
||||
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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(),
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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
29
php/src/generate.php
Normal 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();
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Extism
|
||||
VERSION = "0.0.1"
|
||||
VERSION = "0.0.1.rc6"
|
||||
end
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user