Skip to content
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

kernel crate/module is missing for linux feature to work #3

Open
zjp-CN opened this issue Dec 28, 2024 · 1 comment
Open

kernel crate/module is missing for linux feature to work #3

zjp-CN opened this issue Dec 28, 2024 · 1 comment

Comments

@zjp-CN
Copy link
Contributor

zjp-CN commented Dec 28, 2024

osl ✗ cargo c --features linux
    Checking osl v0.1.0 (/rust/tmp/repos/osl)
error[E0433]: failed to resolve: use of undeclared crate or module `kernel`
 --> src/linux/error.rs:1:5
  |
1 | use kernel::prelude::*;
  |     ^^^^^^ use of undeclared crate or module `kernel`

error[E0433]: failed to resolve: use of undeclared crate or module `kernel`
 --> src/linux/sleep.rs:1:5
  |
1 | use kernel::delay::usleep_range;
  |     ^^^^^^ use of undeclared crate or module `kernel`
@guoweikang
Copy link
Owner

Applying OSL on Linux is a slightly complicated task,Refer to https://github.com/guoweikang/i2c-dw-linux-adapter; When enabling the Linux feature, it must be coordinated with other tasks (for example, the project needs to be in the Linux directory)

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

No branches or pull requests

2 participants