wasmtime 0.4.1-arm64-darwin → 6.0.0-arm64-darwin
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
 - data/lib/wasmtime/2.7/wasmtime_rb.bundle +0 -0
 - data/lib/wasmtime/3.0/wasmtime_rb.bundle +0 -0
 - data/lib/wasmtime/3.1/wasmtime_rb.bundle +0 -0
 - data/lib/wasmtime/3.2/wasmtime_rb.bundle +0 -0
 - data/lib/wasmtime/error.rb +48 -0
 - data/lib/wasmtime/version.rb +1 -1
 - data/lib/wasmtime.rb +0 -44
 - metadata +10 -9
 - data/ext/build.rs +0 -8
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: d4f5d01664a336d9854ada2a93b0932a206ce8190018fff16f901a60fd548475
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 9342ae1e7e244bfd497f10c8cbb93cd02a13034047c85198bb5bf790b4a9975c
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 6ccb53e4ec609a857f12ff905e832650512d3d33e446ef0ae4341f5b702f01efd911c3f8aeb3f7cfd37f22023b8288438240f47b75ccec8c8f96861f805a41cd
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 83bfa6df49b58424a5c323842191f65601312662b37cc50bac687ccb1f5ad99920b7b55f229a2d52f066b8411c9673b1f781585a5220b16a1ae0e3134ed5f4d1
         
     | 
| 
         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
         
     | 
    
        data/lib/wasmtime/version.rb
    CHANGED
    
    
    
        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: 0. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 6.0.0
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: arm64-darwin
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - The Wasmtime Project Developers
         
     | 
| 
       8 
     | 
    
         
            -
            autorequire:
         
     | 
| 
      
 8 
     | 
    
         
            +
            autorequire: 
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: exe
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date: 2023- 
     | 
| 
      
 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,11 +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.bundle
         
     | 
| 
       25 
24 
     | 
    
         
             
            - lib/wasmtime/3.0/wasmtime_rb.bundle
         
     | 
| 
       26 
25 
     | 
    
         
             
            - lib/wasmtime/3.1/wasmtime_rb.bundle
         
     | 
| 
      
 26 
     | 
    
         
            +
            - lib/wasmtime/3.2/wasmtime_rb.bundle
         
     | 
| 
      
 27 
     | 
    
         
            +
            - lib/wasmtime/error.rb
         
     | 
| 
       27 
28 
     | 
    
         
             
            - lib/wasmtime/version.rb
         
     | 
| 
       28 
29 
     | 
    
         
             
            homepage: https://github.com/BytecodeAlliance/wasmtime-rb
         
     | 
| 
       29 
30 
     | 
    
         
             
            licenses:
         
     | 
| 
         @@ -31,9 +32,9 @@ licenses: 
     | 
|
| 
       31 
32 
     | 
    
         
             
            metadata:
         
     | 
| 
       32 
33 
     | 
    
         
             
              homepage_uri: https://github.com/BytecodeAlliance/wasmtime-rb
         
     | 
| 
       33 
34 
     | 
    
         
             
              source_code_uri: https://github.com/BytecodeAlliance/wasmtime-rb
         
     | 
| 
       34 
     | 
    
         
            -
              cargo_crate_name:  
     | 
| 
      
 35 
     | 
    
         
            +
              cargo_crate_name: wasmtime-rb
         
     | 
| 
       35 
36 
     | 
    
         
             
              changelog_uri: https://github.com/bytecodealliance/wasmtime-rb/blob/main/CHANGELOG.md
         
     | 
| 
       36 
     | 
    
         
            -
            post_install_message:
         
     | 
| 
      
 37 
     | 
    
         
            +
            post_install_message: 
         
     | 
| 
       37 
38 
     | 
    
         
             
            rdoc_options:
         
     | 
| 
       38 
39 
     | 
    
         
             
            - "--exclude"
         
     | 
| 
       39 
40 
     | 
    
         
             
            - vendor
         
     | 
| 
         @@ -46,15 +47,15 @@ required_ruby_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       46 
47 
     | 
    
         
             
                  version: '2.7'
         
     | 
| 
       47 
48 
     | 
    
         
             
              - - "<"
         
     | 
| 
       48 
49 
     | 
    
         
             
                - !ruby/object:Gem::Version
         
     | 
| 
       49 
     | 
    
         
            -
                  version: 3. 
     | 
| 
      
 50 
     | 
    
         
            +
                  version: 3.3.dev
         
     | 
| 
       50 
51 
     | 
    
         
             
            required_rubygems_version: !ruby/object:Gem::Requirement
         
     | 
| 
       51 
52 
     | 
    
         
             
              requirements:
         
     | 
| 
       52 
53 
     | 
    
         
             
              - - ">="
         
     | 
| 
       53 
54 
     | 
    
         
             
                - !ruby/object:Gem::Version
         
     | 
| 
       54 
55 
     | 
    
         
             
                  version: '0'
         
     | 
| 
       55 
56 
     | 
    
         
             
            requirements: []
         
     | 
| 
       56 
     | 
    
         
            -
            rubygems_version: 3. 
     | 
| 
       57 
     | 
    
         
            -
            signing_key:
         
     | 
| 
      
 57 
     | 
    
         
            +
            rubygems_version: 3.4.4
         
     | 
| 
      
 58 
     | 
    
         
            +
            signing_key: 
         
     | 
| 
       58 
59 
     | 
    
         
             
            specification_version: 4
         
     | 
| 
       59 
60 
     | 
    
         
             
            summary: Wasmtime bindings for Ruby
         
     | 
| 
       60 
61 
     | 
    
         
             
            test_files: []
         
     |