wasmer-python
๐๐ธ WebAssembly runtime for Python
ํ์ผ ํ์๊ธฐ
์ต์ข ๋ฒ์ ๋ค์ด๋ก๋ (.zip)- ---bug-report.md
- ---feature-request.md
- --question.md
- release.yml
- test.yml
- dependabot.yml
- nbody.wasm
- test_compilation_time.py
- test_execution_time.py
- test_headless_time.py
- test_memory.py
- wasmer.html
- wasmer_compiler_cranelift.html
- wasmer_compiler_llvm.html
- wasmer_compiler_singlepass.html
- index.html
- search.js
- wasmer.html
- wasmer_compiler_cranelift.html
- wasmer_compiler_llvm.html
- wasmer_compiler_singlepass.html
- from_c.c
- from_c.py
- from_c.wasm
- greet.py
- greet.rs
- greet.wasm
- simple.py
- simple.rs
- simple.wasm
- wasi.rs
- wasi.wasm
- compiler_cranelift.py
- compiler_llvm.py
- compiler_singlepass.py
- engine_cross_compilation.py
- engine_dylib.py
- engine_headless.py
- engine_universal.py
- exports_function.py
- exports_global.py
- exports_memory.py
- imports_exports.py
- imports_function.py
- imports_function_early_exit.py
- instance.py
- README.md
- wasi.py
- __init__.py
- README.md
- setup.py
- __init__.py
- README.md
- setup.py
- __init__.py
- README.md
- setup.py
- __init__.py
- README.md
- setup.py
- function.rs
- global.rs
- memory.rs
- mod.rs
- table.rs
- buffer.rs
- mod.rs
- views.rs
- engines.rs
- errors.rs
- exports.rs
- import_object.rs
- instance.rs
- lib.rs
- module.rs
- store.rs
- target.rs
- types.rs
- values.rs
- wasi.rs
- wat.rs
- build.rs
- Cargo.toml
- pyproject.toml
- README.md
- lib.rs
- Cargo.toml
- pyproject.toml
- README.md
- lib.rs
- Cargo.toml
- pyproject.toml
- README.md
- lib.rs
- Cargo.toml
- pyproject.toml
- README.md
- engines.rs
- lib.rs
- target_lexicon.rs
- Cargo.toml
- README.md
- README.md
- update-version.sh
- custom_sections.rs
- custom_sections.wasm
- invalid.wasm
- test_docs.py
- test_function.py
- test_global.py
- test_import_object_dict.py
- test_import_object_old.py
- test_instance.py
- test_memory.py
- test_module.py
- test_store.py
- test_table.py
- test_target.py
- test_type.py
- test_value.py
- test_wasi.py
- test_wat.py
- tests.rs
- tests.wasm
- wasi.rs
- wasi.wasm
- .gitattributes
- .gitignore
- bors.toml
- Cargo.lock
- Cargo.toml
- CHANGELOG.md
- conftest.py
- justfile
- LICENSE
- README.md
# ์ค์น ๊ฐ์ด๋
1. ์ฝ๋ ๋ด๋ ค๋ฐ๊ธฐ
git clone https://github.com/wasmerio/wasmer-python
๊นํ๋ธ์์ ํ๋ก์ ํธ ์ฝ๋ ์ ์ฒด๋ฅผ ๋ด ์ปดํจํฐ๋ก ๋ด๋ ค๋ฐ์ต๋๋ค.
cd wasmer-python
๋ฐฉ๊ธ ๋ด๋ ค๋ฐ์ ํ๋ก์ ํธ ํด๋ ์์ผ๋ก ์ด๋ํฉ๋๋ค.
2. Python
์ฌ์ ์ถ์ฒ์ฌ์ ์ค๋น๋ฌผ
โ ๏ธ ์ด ํ๋ก์ ํธ๋ ๊ท๋ชจ๊ฐ ํฐ ์ ์ฅ์๋ผ, ์ด ๋ฐฉ๋ฒ์ด ์ค์ ํต์ฌ ์ ํ์ด ์๋๋ผ ๋ด๋ถ ํ์ ํจํค์ง๋ฅผ ๊ฐ๋ฆฌํค๋ ๊ฒ์ผ ์ ์์ต๋๋ค. README ์ ์ฒด๋ฅผ ํจ๊ป ํ์ธํด๋ณด์ธ์.
pip install .
PyPI์ ๋ฐฐํฌ๋ ํจํค์ง๋ฅผ ๋ฐ๋ก ์ค์นํฉ๋๋ค. ์์ค ํด๋ก ์ด ํ์ ์์ต๋๋ค.
python <์คํํ ํ์ผ๋ช
>.py # README์์ ์ ํํ ์คํ ํ์ผ๋ช
์ ํ์ธํ์ธ์
ํ์ด์ฌ ์คํฌ๋ฆฝํธ(๋๋ ๋ชจ๋)๋ฅผ ์คํํฉ๋๋ค.
์๋ฌ ๋ฉ์์ง ์์ด ์คํ๋๊ณ ํฐ๋ฏธ๋์ ์๋ด ๋ฌธ๊ตฌ๊ฐ ์ถ๋ ฅ๋๋ฉด ์ ์์
๋๋ค.
3. Rust
๋ณดํต์ฌ์ ์ค๋น๋ฌผ
- Git GitHub์์ ํ๋ก์ ํธ ์ฝ๋๋ฅผ ๋ด๋ ค๋ฐ์ผ๋ ค๋ฉด ํ์ํฉ๋๋ค.
- Rust (rustup) rustup์ผ๋ก ์ค์นํ๋ฉด cargo๋ ํจ๊ป ์ค์น๋ฉ๋๋ค.
cargo build --release
Rust ํ๋ก์ ํธ๋ฅผ ์ปดํ์ผํฉ๋๋ค.
cargo run
๋น๋ ํ ๋ฐ๋ก ์คํ๊น์ง ์งํํฉ๋๋ค.
cargo build๊ฐ ์๋ฌ ์์ด ๋๋๋ฉด ์ฑ๊ณต์
๋๋ค. target/ ํด๋์ ์คํ ํ์ผ์ด ์์ฑ๋ฉ๋๋ค.
// repository documentation
Was this content helpful?
(0 ratings)
