All of lore.kernel.org
 help / color / mirror / Atom feed
From: Miguel Ojeda <miguel.ojeda.sandonis@gmail.com>
To: "Nándor Krácser" <bonifaido@gmail.com>
Cc: rust-for-linux <rust-for-linux@vger.kernel.org>
Subject: Re: Using 3rd party crates in an out-of-tree module
Date: Mon, 21 Mar 2022 17:49:28 +0100	[thread overview]
Message-ID: <CANiq72my9N51hhryv-Cp79eUmPVCx6q=0fJrhkzmvT+nVPq+WQ@mail.gmail.com> (raw)
In-Reply-To: <CAHkG_ewRo5uPOue3ZMAAPAc+eP7MNNU5iVym-JVG1jN7HD+XMg@mail.gmail.com>

Hi Nándor,

On Mon, Mar 21, 2022 at 3:12 PM Nándor Krácser <bonifaido@gmail.com> wrote:
>
> I was looking at the out-of-tree example at
> https://github.com/Rust-for-Linux/rust-out-of-tree-module and found
> myself in a situation where I wanted to pull in a 3rd party module
> from crates.io which can run in kernel space as well. How can this be
> done?

You can do it by importing the code into your crate. However, it would
be best to have the functionality in mainline, so that everyone
benefits: which crates are you looking into? We have a few crates that
we may adapt in the future or provide similar functionality ourselves
(e.g. `bitflags`).

Cheers,
Miguel

      parent reply	other threads:[~2022-03-21 16:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-21  9:40 Using 3rd party crates in an out-of-tree module Nándor Krácser
2022-03-21 14:36 ` Alex Gaynor
2022-03-21 23:14   ` Miguel Ojeda
2022-03-23  9:40     ` Nándor Krácser
2022-03-23 11:40       ` Greg KH
2022-03-21 16:49 ` Miguel Ojeda [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CANiq72my9N51hhryv-Cp79eUmPVCx6q=0fJrhkzmvT+nVPq+WQ@mail.gmail.com' \
    --to=miguel.ojeda.sandonis@gmail.com \
    --cc=bonifaido@gmail.com \
    --cc=rust-for-linux@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.