<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kakts</author_name>
  <author_url>https://blog.hatena.ne.jp/kakts/</author_url>
  <blog_title>kakts-log</blog_title>
  <blog_url>https://kakts.dev/</blog_url>
  <categories>
    <anon>rust</anon>
  </categories>
  <description>概要 rustで 非同期I/Oライブラリのtokioを使って、async fnを利用する際、実行時に下記エラーとなった際の対処法をまとめます。 error: The default runtime flavor is multi_thread, but the rt-multi-thread feature is disabled. 今回は簡単なweb apiを実装する際を例に挙げます。 コード Cargo.toml [package] name = &quot;web-api&quot; version = &quot;0.1.0&quot; edition = &quot;2021&quot; [dependencies] axum = &quot;0.8.…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkakts.dev%2Fentry%2F2025%2F01%2F08%2F011507&quot; title=&quot;rust 非同期I/Oライブラリのtokio でasync fnを使う際にrt-multi-threadを有効にする - kakts-log&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-01-08 01:15:07</published>
  <title>rust 非同期I/Oライブラリのtokio でasync fnを使う際にrt-multi-threadを有効にする</title>
  <type>rich</type>
  <url>https://kakts.dev/entry/2025/01/08/011507</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
