<commit_before>{% set name = "wasmer" %}
{% set version = "1.0.0" %}

package:
  name: {{ name }}
  version: {{ version }}

source:
  url: https://github.com/wasmerio/{{ name }}/archive/{{ version }}.tar.gz
  sha256: 1526fadeb8cec686373bfe0ef9f497a08ebfb936e9e6dba8a6b091680ea05190

build:
  skip: true  # [win]
  number: 0

requirements:
  build:
    - {{ compiler("c") }}
    - {{ compiler("cxx") }}
    - rust >=1.47
    - llvmdev >=10
  host:
    - libffi
    - openssl
    - zlib
  run: []

# TODO: ideally have some "canonical" WASM to run...
{% set test_wasm = "tests/wasi-wast/wasi/snapshot1/hello.wasm" %}
{% set test_text = "Hello, world!" %}

test:
  source_files:
    - {{ test_wasm }}
  commands:
    - wasmer --version<commit_msg>try pinning rust on osx<commit_after>{% set name = "wasmer" %}
{% set version = "1.0.0" %}

package:
  name: {{ name }}
  version: {{ version }}

source:
  url: https://github.com/wasmerio/{{ name }}/archive/{{ version }}.tar.gz
  sha256: 1526fadeb8cec686373bfe0ef9f497a08ebfb936e9e6dba8a6b091680ea05190

build:
  skip: true  # [win]
  number: 0

requirements:
  build:
    - {{ compiler("c") }}
    - {{ compiler("cxx") }}
    - rust >=1.47  # [not osx]
    - rust ==1.47  # [osx]
    - llvmdev >=10
  host:
    - libffi
    - openssl
    - zlib
  run: []

# TODO: ideally have some "canonical" WASM to run...
{% set test_wasm = "tests/wasi-wast/wasi/snapshot1/hello.wasm" %}
{% set test_text = "Hello, world!" %}

test:
  source_files:
    - {{ test_wasm }}
  commands:
    - wasmer --version
{'fraction_non_alphanumeric': 0.17685305591677503, 'fraction_numerical': 0.06566970091027308, 'mean_word_length': 2.837905236907731, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4789840', 'n_tokens_mistral': 689, 'n_tokens_neox': 625, 'n_words': 130}