Skip to content

최신 예제로 배우는 러스트로 업데이트 (#7) #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

HotoRas
Copy link

@HotoRas HotoRas commented Jun 7, 2025

closes #7

draft PR 요청(https://github.com/rust-kr/rust-by-example-ko/issues/7#issuecomment-2951732978)에 따라 PR을 생성합니다.

HotoRas added 11 commits April 6, 2025 14:11
Squashed commit of the following:

commit fc68099
Author: Hoto Ras <hotoras03@gmail.com>
Date:   Sat Mar 29 03:13:34 2025 +0000

    Upgrade src-en

    Target: rust-lang/rust-by-example@d5f826a
    Version: likely 2024

commit 8e0ba0b
Author: Hoto Ras <hotoras03@gmail.com>
Date:   Sat Mar 29 11:21:30 2025 +0900

    Update gh-pages.yml

    enable to call build manually

commit 34f652d
Author: HotoRas <hotoras03@gmail.com>
Date:   Fri Aug 23 19:05:52 2024 +0900

    Revert "Update gh-pages.yml"

    This reverts commit b509413.

commit b509413
Author: Hoto Ras <hotoras03@gmail.com>
Date:   Fri Aug 23 18:58:06 2024 +0900

    Update gh-pages.yml

commit 48a146f
Author: HotoRas <hotoras03@gmail.com>
Date:   Fri Aug 23 18:42:14 2024 +0900

    Update original files

    여기 있는 파일들이 약 3년 전에 업데이트가 끊겼더라고요
    러스트 공부도 할 겸 새로 싹 다 번역해 보겠습니당
- 추가된 예제 반영
- 한글 변수 사용 가능성 반영
- 일부 역주 추가

gh-pages.yml 패치:
- Patch deprecations
  * ubuntu-18.04 not served anymore
  * peaceiris/actions-gh-pages removed
- Be more modern outputs
  * using actions/upload-artifact instead of deploying on branch
  * using actions/deploy-pages to directly publish builts

@origin
hash:c9bc71c25a5e9ebf87311815c7f924feea86fd00
hash:c9f73d3babb3c7974f5673991d939afab826c034
- 구조체에 대한 예시 수정
- attribute에 대한 번역 추가
- 원본 식별자(`r#`)에 대한 번역 추가

참고사항
- 코드 블럭 안쪽은 아직 번역해야 할 게 많습니다. 이 부분은 텍스트 부분의 번역이 끝나면 다시 돌면서 진행할 예정입니다.
- 일부 커스텀 타입 문서의 원문 최신화도 진행했습니다. 이들은 다음 커밋에 번역이 진행될 예정입니다.
- 목차 부분인 SUMMARY.md 파일을 완역했습니다. 용어는 The Book을 일부 참조했습니다.
  * `std` 내부 트레잇의 경우 원문을 따랐습니다.
- 대부분의 용어가 완역됨에 따라, 종전에 번역하지 않고 내버려둔 용어도 일부 번역을 진행했습니다.
- 일부 dead link를 해결했습니다.
- 번역 예정인 부분 중 새로 추가된 문서를 반영했습니다. 기존판에 대하여 추가된 부분은 다음과 같습니다:
  * `error/abort_unwind`
  * `error/option_unwrap/defaults`
  * `flow_control/let_else`
  * `flow_control/match/destructuring/destructure_slice` (파일 위치 재변경)
  * `unsafe/asm`
- diverging에 안정화 관련 "한글" 문단을 추가했습니다.
- FFI에 unsafe 관련 "영문" 문단을 추가했습니다.
  * 해당 문단은 FFI를 번역할 시점이 되면 알아서 번역하겠습니다. 제가 직접 썼는데 번역 못할 것도 없죠 뭐..
- enum, constants 번역 완료
- variable bindings 파트 번역 완료
- `book.toml`: description과 author를 변경했습니다. 솔직히 `A description`은 좀 애매하죠..
- 번역되지 않았던 줄을 번역 완료했습니다. (SUMMARY 이용)
- 5. 자료형 다루기, 6. 타입 변환, 7. 표현식 파트 번역이 완료되었습니다.
  * 이제 진짜 시작입니다. 1/5 정도 왔네요.
- 8.5.1. 아이템 해체 파트의 비-코드 부분 번역이 완료되었습니다.
- 8. 제어문 파트의 일부 본문을 영문판으로 대치했습니다.
if-else문 완료
loop문 2/3

사실 수명주기(`'_lifetime`)를 직접 지정하는 경우는 없다고 설명하고 있는데 아무리 봐도 loop/for/while의 라벨링이 수명주기랑 비슷하단 말이죠..
- for, while, let..else, if let/while let 등 번역 완료
- 반복문에서 리턴하기, 매칭 가드 번역 완료
- 초기 번역인 구조체 해체 부분 표현 일부 변경

We're quarter-a-way done! 1/4이 완성됐습니다!
request by: rust-kr#7 (comment)

- 위 issuecomment에서 제시한, 원문에서 추가한 내용 중 사실과 다른 부분을 전부 삭제하였습니다.
  * never type (`!`)의 안정화 관련: 현재 `!`를 타입으로 지정할 수 있는 Rust 2024가 릴리스된 것으로 해당 에디션이 절대다수가 사용하는 에디션이 된 이후에 `!`의 안정화가 진행된다는 Tracking Issue comment에 의거하여 해당 구문은 전부 삭제합니다.
    - issuecomment: github.com/rust-lang/rust/issues/35121#issuecomment-2241009577
  * FFI에 unsafe in unsafe에 대해서도 추가한 내용이 있었는데 들어냈습니다.

역시 기술 서적은 아무나 쓰는 거 아닌가 봅니다. 이해가 딸리는데 막 추가했다가 결국엔 전부 삭제하네요...
description = "A description"
author = "The Rust Community"
description = "예제로 배우는 러스트 (Rust by Example)의 한국어판입니다."
author = "러스트 한국 커뮤니티"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://github.com/rust-kr/ org의 이름과 일치시키는 편이 좋겠습니다.

Suggested change
author = "러스트 한국 커뮤니티"
author = "한국 러스트 사용자 그룹"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

최신 Rust by Example로 업데이트하려 합니다
2 participants