Tauri + Svelte + Material UI (+ Dark theme) Prerequisites Windows os (not tested on macos or linux) rust environment https://www.rust-lang.org/tools/install node environment NVM for Windows (recommended) https://github.com/coreybutler/nvm-windows Create tauri app with svelte https://tauri.studio/en/docs/getting-started/intro Run below command yarn create tauri-app And you will see below logs: yarn create v1.22.10 [1/4] Resolving packages... rust 에서 library, unit test 분리하기 rust에서 library를 분리하고 library code를 테스트하는 unit test를 분리하는 방법을 소개합니다. node.js나 java들과 크게 다르진 않는데, 초반에 셋업할 때 구조를 이해하지 못하면 한참 해맬수가 있어서 공유합니다 아래와 같은 간단한 절차로 진행하면 구조를 이해하는 데 도움이 될 겁니다. 먼저 app를 생성합니다. cargo new my_app app에서 사용한 library를 생성합니다. cd my_app cargo new --lib my_lib library의 unit test 코드를 my_lib/src/lib.rs안에 작성합니다. pub fn add(a: i32, b: i32) -> i32 { a + b } 그리고, 예제로 들어 있던 test code를 my_lib/t.. 이전 1 2 다음