Qiitaã®ã»ãã«ãJava 23æ°æ©è½ã¾ã¨ãããæ¸ãã¾ããã Chicoryã使ã£ã¦Rustãã³ã³ãã¤ã«ããwasmãJavaããå¼ã³åºãã¦ã¿ã¾ããã JVMã§WebAssemblyã«ã³ã³ãã¤ã«ããRustã®ã³ã¼ããåãã - ããã ã®Hatena ãã ãçµæ§å¼ã³åºããããã©ãã®ã§ãJavaã¤ã³ã¿ãã§ã¼ã¹ãå®ç¾©ããããªããã¡ã½ããå¼ã³åºãã§ä½¿ãããã¨ããããè¦ããããã¤ãä½ã£ã¦ã¿ã¾ãã Rustã®ã³ã¼ãã¯ããã #[no_mangle] pub fn add(left: i32, right: i32) -> i32 { left + right } #[no_mangle] pub fn sub(left: i32, right: i32) -> i32 { left - right } #[no_mangle] pub fn mul(left: i32, right: i32) ->
{{#tags}}- {{label}}
{{/tags}}