간단한 컴포넌트 빌드하기
이 섹션에서는 다음 WIT 인터페이스로 덧셈기를 구현하는 간단한 WebAssembly 컴포넌트를 빌드하는 방법을 안내합니다:
package docs:adder@0.1.0;
interface add {
add: func(x: u32, y: u32) -> u32;
}
world adder {
export add;
}
언어
이 가이드는 다양한 언어로 구현되어 있습니다:
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
이 섹션에서는 다음 WIT 인터페이스로 덧셈기를 구현하는 간단한 WebAssembly 컴포넌트를 빌드하는 방법을 안내합니다:
package docs:adder@0.1.0;
interface add {
add: func(x: u32, y: u32) -> u32;
}
world adder {
export add;
}
이 가이드는 다양한 언어로 구현되어 있습니다: