-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
165 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
title: Rust 1.75.0의 Async trait | ||
description: 작년 말 릴리즈된 Rust 1.75.0에서 trait에 async fn을 지원하기 시작했습니다. 하지만 공개 trait에서는 이를 사용하는 걸 권장하지 않는데요. Rust의 async 문법 작동 방식을 간단히 알아보고, 왜 공개 trait에서 async 키워드 사용이 권장되지 않는지 알아봅시다. | ||
category: rust | ||
pubDate: 2024-06-24T13:05:00+09:00 | ||
hidden: true | ||
topics: | ||
- Rust | ||
- async | ||
- async-trait | ||
updatedDate: 2024-08-20T17:08+09:00 | ||
internalUpdatedDate: 2024-08-23T02:13+09:00 | ||
--- | ||
|
||
안녕하세요 | ||
|
||
--- | ||
|
||
ㅁㄴㅇㄹ | ||
|
||
--- | ||
|
||
ㅁㄴㅇㄹㄹㅁㄴㅇㅁ나앶메 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
import { getCollection, type CollectionEntry } from "astro:content"; | ||
import { Marpit } from "@marp-team/marpit"; | ||
import Layout from "@layouts/Layout.astro"; | ||
export async function getStaticPaths() { | ||
const slides = await getCollection("slide"); | ||
return slides.map((slide) => ({ | ||
params: { slug: slide.slug }, | ||
props: slide, | ||
})); | ||
} | ||
const slide = Astro.props; | ||
type Props = CollectionEntry<"slide">; | ||
const marpit = new Marpit({ | ||
markdown: { | ||
html: true, | ||
} | ||
}); | ||
const { html, css } = marpit.render(slide.body); | ||
console.log(html); | ||
--- | ||
<Layout title={slide.data.title} description={slide.data.description}> | ||
<style is:inline set:html={css}></style> | ||
<Fragment set:html={html} /> | ||
</Layout> | ||
|