wasmtime 5.0.0-x86_64-linux-musl → 6.0.0-x86_64-linux-musl

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1945313b71606a85e0d2b3b33ea6b9391597d496c27c9691153c498266140983
4
- data.tar.gz: e3fde42240f521b3cfec61f1087337c8e58ba957abead25ef3398bc0e4978792
3
+ metadata.gz: 0a656610770dae37a5a8c0cf2abc80b971a245dfbca116bd4f4a6be0361db4e5
4
+ data.tar.gz: d5d4b5cc71bd7ef29659821886a5a749d7285033ac6d86449db915e8b93b9190
5
5
  SHA512:
6
- metadata.gz: 6492485b0e1aabaf40bb6921b8c509cd5bed7f668df6910c371f5125ff3afd9408ef6bad8373e13f11b459980f4b6d44a726464f5172a8f3aa21e2a7f819be7c
7
- data.tar.gz: e8aa7bd0a464492d4d873b4e6e3dda8c5688bdbd8ea5646364c86663c088a6081117f4d15a2aac78e4e01b62b2b6206aa720a9784ed2661804412a7e81df1ea4
6
+ metadata.gz: 652687b8f7b708753ee9ce68c0933f6fb7a9a3a4e9424e4891a17581aee9a570edab809f5c5a8d246afe836d36aedab23150d96184d60d9a59bf0092665f81cc
7
+ data.tar.gz: c9a20ffaba2546096237b156ca88cc63697e65b603cb99390463fb66d2802cb6e3dbe20355f9ec2a6982a05b05f546063cc77c87e635a6ae6f822fe8a78771f1
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,48 @@
1
+ # frozen_string_literal: true
2
+
3
+ # To prevent double loading of this file when `ruby-api` is enabled
4
+ return if defined?(Wasmtime::Error)
5
+
6
+ module Wasmtime
7
+ class Error < StandardError; end
8
+
9
+ # Raised when failing to convert the return value of a Ruby-backed Func to
10
+ # Wasm types.
11
+ class ResultError < Error; end
12
+
13
+ # Raised when converting an {Extern} to its concrete type fails.
14
+ class ConversionError < Error; end
15
+
16
+ # Raised on Wasm trap.
17
+ class Trap < Error
18
+ STACK_OVERFLOW = :stack_overflow
19
+ MEMORY_OUT_OF_BOUNDS = :memory_out_of_bounds
20
+ HEAP_MISALIGNED = :heap_misaligned
21
+ TABLE_OUT_OF_BOUNDS = :table_out_of_bounds
22
+ INDIRECT_CALL_TO_NULL = :indirect_call_to_null
23
+ BAD_SIGNATURE = :bad_signature
24
+ INTEGER_OVERFLOW = :integer_overflow
25
+ INTEGER_DIVISION_BY_ZERO = :integer_division_by_zero
26
+ BAD_CONVERSION_TO_INTEGER = :bad_conversion_to_integer
27
+ UNREACHABLE_CODE_REACHED = :unreachable_code_reached
28
+ INTERRUPT = :interrupt
29
+ ALWAYS_TRAP_ADAPTER = :always_trap_adapter
30
+ OUT_OF_FUEL = :out_of_fuel
31
+ UNKNOWN = :unknown
32
+ end
33
+
34
+ # Raised when a WASI program terminates early by calling +exit+.
35
+ class WasiExit < Error
36
+ # @return [Integer] The system exit code.
37
+ attr_reader(:code)
38
+
39
+ def initialize(code)
40
+ @code = code
41
+ end
42
+
43
+ # @return [String]
44
+ def message
45
+ "WASI exit with code #{code}"
46
+ end
47
+ end
48
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Wasmtime
4
- VERSION = "5.0.0"
4
+ VERSION = "6.0.0"
5
5
  end
data/lib/wasmtime.rb CHANGED
@@ -9,47 +9,3 @@ begin
9
9
  rescue LoadError
10
10
  require "wasmtime/wasmtime_rb"
11
11
  end
12
-
13
- module Wasmtime
14
- class Error < StandardError; end
15
-
16
- # Raised when failing to convert the return value of a Ruby-backed Func to
17
- # Wasm types.
18
- class ResultError < Error; end
19
-
20
- # Raised when converting an {Extern} to its concrete type fails.
21
- class ConversionError < Error; end
22
-
23
- # Raised on Wasm trap.
24
- class Trap < Error
25
- STACK_OVERFLOW = :stack_overflow
26
- MEMORY_OUT_OF_BOUNDS = :memory_out_of_bounds
27
- HEAP_MISALIGNED = :heap_misaligned
28
- TABLE_OUT_OF_BOUNDS = :table_out_of_bounds
29
- INDIRECT_CALL_TO_NULL = :indirect_call_to_null
30
- BAD_SIGNATURE = :bad_signature
31
- INTEGER_OVERFLOW = :integer_overflow
32
- INTEGER_DIVISION_BY_ZERO = :integer_division_by_zero
33
- BAD_CONVERSION_TO_INTEGER = :bad_conversion_to_integer
34
- UNREACHABLE_CODE_REACHED = :unreachable_code_reached
35
- INTERRUPT = :interrupt
36
- ALWAYS_TRAP_ADAPTER = :always_trap_adapter
37
- OUT_OF_FUEL = :out_of_fuel
38
- UNKNOWN = :unknown
39
- end
40
-
41
- # Raised when a WASI program terminates early by calling +exit+.
42
- class WasiExit < Error
43
- # @return [Integer] The system exit code.
44
- attr_reader(:code)
45
-
46
- def initialize(code)
47
- @code = code
48
- end
49
-
50
- # @return [String]
51
- def message
52
- "WASI exit with code #{code}"
53
- end
54
- end
55
- end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wasmtime
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.0
4
+ version: 6.0.0
5
5
  platform: x86_64-linux-musl
6
6
  authors:
7
7
  - The Wasmtime Project Developers
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-01-23 00:00:00.000000000 Z
11
+ date: 2023-03-06 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A Ruby binding for Wasmtime, a WebAssembly runtime.
14
14
  email:
@@ -19,12 +19,12 @@ extra_rdoc_files: []
19
19
  files:
20
20
  - LICENSE
21
21
  - README.md
22
- - ext/build.rs
23
22
  - lib/wasmtime.rb
24
23
  - lib/wasmtime/2.7/wasmtime_rb.so
25
24
  - lib/wasmtime/3.0/wasmtime_rb.so
26
25
  - lib/wasmtime/3.1/wasmtime_rb.so
27
26
  - lib/wasmtime/3.2/wasmtime_rb.so
27
+ - lib/wasmtime/error.rb
28
28
  - lib/wasmtime/version.rb
29
29
  homepage: https://github.com/BytecodeAlliance/wasmtime-rb
30
30
  licenses:
@@ -32,7 +32,7 @@ licenses:
32
32
  metadata:
33
33
  homepage_uri: https://github.com/BytecodeAlliance/wasmtime-rb
34
34
  source_code_uri: https://github.com/BytecodeAlliance/wasmtime-rb
35
- cargo_crate_name: ext
35
+ cargo_crate_name: wasmtime-rb
36
36
  changelog_uri: https://github.com/bytecodealliance/wasmtime-rb/blob/main/CHANGELOG.md
37
37
  post_install_message:
38
38
  rdoc_options:
data/ext/build.rs DELETED
@@ -1,8 +0,0 @@
1
- use std::error::Error;
2
-
3
- // Propogate linking from rb-sys for usage in the wasmtime-rb Rust crate
4
- fn main() -> Result<(), Box<dyn Error>> {
5
- let _ = rb_sys_env::activate()?;
6
-
7
- Ok(())
8
- }