-
Notifications
You must be signed in to change notification settings - Fork 108
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
Future breaking API changes #69
Comments
Hi, |
Hello! I'm glad to hear that this library is useful to you! The proposal in #60 is to just remove the let me = procfs::process::Process::myself().unwrap();
let my_pid = me.stat().unwrap().pid; (This code works today, too). Does that answer your question? |
Hello, |
I'm just in the process of removing all clippy warnings and adding clippy checks. This involves replacing a lot of manual prefix removals by the new strip_prefix method. I guess this could be considered a breaking change. An alternative would be to simply ignore these clippy warnings. |
Hello, First thank you writing this lib this is really useful. I'm a contributor of the scaphandre project (https://github.com/hubblo-org/scaphandre) and we use procfs. |
Hi @uggla 👋 The short answer is: the API can still change in incompatible ways in a future 0.10.x release. I don't consider the API stable enough for a 1.0 release yet. (In fact there's an open draft PR that is proposing a breaking change). However in practice, the API breaking changes tend to be fairly small, and not that often. I saw the comment you made in the scaphandre repo, so I'll also make a comment over there to talk about any specific issues related to your project. |
This issue hasn't been updated in a long while, so I'm going to close it. We've been doing breaking changes in new minor versions, and this has been working well for us for a while. Thanks all |
This issue is collecting some ideas for breaking API changes that we might want to make in the future
Option<T>
toT
if they were added in very old kernels (Consider only making fields optional if they were added after Linux 2.6 #68)stat
andpid
fields from theProcess
struct to support cases when you don't need this information (Decouple /stat reading from the Process constructor #60)The text was updated successfully, but these errors were encountered: