# 리팩토링: deno_core 관련 코드를 독립적인 크레이트로 이동 #8
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
리팩토링: deno_core 관련 코드를 독립적인 크레이트로 이동
📋 요약
이 PR은 deno_core 관련 코드를 독립적인
deno-runtime크레이트로 추출하여 더 나은 코드 조직화와 재사용성을 제공합니다.🎯 동기
🔄 변경사항
1.
crates/deno-runtime크레이트 생성새로운 크레이트 구조:
포함된 기능들:
DenoExecutor구조체ExecutionOutput2. Tauri 애플리케이션 의존성 업데이트
deno_core의존성을deno-runtime크레이트로 교체apps/executeJS/src-tauri/Cargo.toml을 로컬 경로 의존성으로 업데이트3. import 경로 리팩토링 및 중복 파일 제거
apps/executeJS/src-tauri/src/deno_runtime.rs제거apps/executeJS/src-tauri/src/bootstrap.js제거js_executor.rs에서deno-runtime크레이트로부터DenoExecutorimport하도록 업데이트commands.rs와js_executor.rs에서 사용하지 않는 import 정리lib.rs에서deno_runtime모듈 선언 제거🧪 테스트
모든 기존 기능이 보존되고 테스트되었습니다:
테스트 결과: ✅ 모든 테스트 통과 (deno-runtime에서 7개 테스트, executeJS에서 0개 테스트)
📊 영향
이전
이후
🔍 코드 품질
🚀 이점
deno-runtime크레이트 사용 가능📝 커밋 히스토리
feat: create deno-runtime crate- JavaScript 런타임과 함께 독립적인 크레이트 추가refactor: update Tauri app to use deno-runtime crate- 의존성 업데이트refactor: remove local deno files and update imports- 기존 파일 정리chore: update Cargo.lock for deno-runtime crate- 락 파일 업데이트✅ 체크리스트
🔗 관련사항
이 리팩토링은 호환성을 유지하면서 코드 조직을 개선하여 JavaScript 런타임의 향후 향상을 위한 기반을 마련합니다.