<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kjw_junichi</author_name>
  <author_url>https://blog.hatena.ne.jp/kjw_junichi/</author_url>
  <blog_title>non vorrei lavorare</blog_title>
  <blog_url>https://abrakatabura.hatenablog.com/</blog_url>
  <categories>
    <anon>rust</anon>
    <anon>パソコン・インターネット</anon>
    <anon>node.js</anon>
  </categories>
  <description>おはようございます。また次男が高熱が出ており、登園している保育園でインフルエンザが盛大に流行っているので、これから検査に病院に行く@kjunichiです。 背景 Rustで作ったwebcamrsをcrateではなく、共有ライブラリとする事で、node.jsのffi-napiから利用しようと思った。 Cのconst char*をRustのstrにするには use std::ffi::CStr; use std::os::raw::c_char; pub fn foo(title: &amp;str) -&gt; () { // } pub extern fn named_window(title: *mut …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fabrakatabura.hatenablog.com%2Fentry%2F2019%2F02%2F02%2F095326&quot; title=&quot;Rustで共有ライブラリを作る際に必要だったCのconst char*をRustの&amp;amp;strにする方法 - non vorrei lavorare&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>2019-02-02 09:53:26</published>
  <title>Rustで共有ライブラリを作る際に必要だったCのconst char*をRustの&amp;strにする方法</title>
  <type>rich</type>
  <url>https://abrakatabura.hatenablog.com/entry/2019/02/02/095326</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
