Skip to content

Investigate libcore usage in S-CORE #2021

Closed
Closed

Description

@pawelrutkaq

DoD:

  • provide list of libcore usage in S-CORE components
  • persistency
  • feo
  • baselib rust
  • orchestrator
  • others with rust

Format of report:

Module

  • link
  • revision checked

libcore usages

  • XYZ1
  • XYZ2

Used tool: extract_usage_rust.py

Activity

  1. added theissue type on Nov 14, 2025
  2. pawelrutkaq commented on Nov 24, 2025

    @pawelrutkaq
    ContributorAuthor

    Script attached. FYI: Feroceen will also help us to do this scan with the compiler early December

    Rust Import Scan Report – orchestrator

    Auto generated by python script writen with AI

    Repository URL: https://github.com/eclipse-score/orchestrator.git
    Repository name: orchestrator
    Commit SHA: acd3cb614d2f97c2e140c776923c8c6623969691
    Mode: core

    Individual Imports

    Import Count
    core::alloc::Layout 5
    core::cell::Cell 2
    core::cell::RefCell 6
    core::cell::UnsafeCell 2
    core::fmt::Debug 4
    core::fmt::Write 1
    core::future 2
    core::future::Future 22
    core::marker::PhantomData 3
    core::marker::PhantomPinned 1
    core::mem 1
    core::mem::MaybeUninit 4
    core::net::SocketAddr 4
    core::ops::BitOr 1
    core::ops::Deref 4
    core::pin::Pin 8
    core::pin::pin 1
    core::ptr 1
    core::ptr::NonNull 2
    core::sync::atomic 1
    core::sync::atomic::Ordering 8
    core::task::Context 5
    core::task::Poll 13
    core::task::Waker 2
    core::time::Duration 28

    Total unique imports: 25
    Total occurrences: 131

    Module Summary

    Module Count
    core 4
    core::alloc 5
    core::cell 10
    core::fmt 5
    core::future 22
    core::marker 4
    core::mem 4
    core::net 4
    core::ops 5
    core::pin 9
    core::ptr 2
    core::sync 1
    core::sync::atomic 8
    core::task 20
    core::time 28

    Rust Import Scan Report – logging

    Auto generated by python script writen with AI

    Repository URL: https://github.com/eclipse-score/logging.git
    Repository name: logging
    Commit SHA: eb8faffcaa3020bd50ef6899231df8a4097352ac
    Mode: core

    Individual Imports

    Import Count
    core::ffi::c_char 2

    Total unique imports: 1
    Total occurrences: 2

    Module Summary

    Module Count
    core::ffi 2

    Rust Import Scan Report – feo

    Auto generated by python script writen with AI

    Repository URL: https://github.com/eclipse-score/feo.git
    Repository name: feo
    Commit SHA: 46bf0f553960d7083547673d6183a0ea3cf14863
    Mode: core

    Individual Imports

    Import Count
    core::any::Any 1
    core::any::TypeId 1
    core::error::Error 1
    core::fmt 9
    core::fmt::Debug 6
    core::fmt::Display 1
    core::future::pending 1
    core::hash::Hash 1
    core::marker::PhantomData 4
    core::mem 1
    core::mem::MaybeUninit 3
    core::mem::size_of 1
    core::net::SocketAddr 8
    core::ops::Range 1
    core::ptr 1
    core::slice::from_raw_parts 1
    core::str 1
    core::str::FromStr 1
    core::sync::atomic 1
    core::sync::atomic::AtomicBool 4
    core::sync::atomic::Ordering 1
    core::time 1
    core::time::Duration 37

    Total unique imports: 23
    Total occurrences: 87

    Module Summary

    Module Count
    core 13
    core::any 2
    core::error 1
    core::fmt 7
    core::future 1
    core::hash 1
    core::marker 4
    core::mem 4
    core::net 8
    core::ops 1
    core::slice 1
    core::str 1
    core::sync 1
    core::sync::atomic 5
    core::time 37

    Rust Import Scan Report – persistency

    Auto generated by python script writen with AI

    Repository URL: https://github.com/eclipse-score/persistency.git
    Repository name: persistency
    Commit SHA: 6f20545e0bbe90fcc36a0c6783e91a4fd867b110
    Mode: core

    Individual Imports

    Import Count
    core::array::TryFromSliceError 1
    core::fmt 1

    Total unique imports: 2
    Total occurrences: 2

    Module Summary

    Module Count
    core 1
    core::array 1

    Global Summary Across All Repositories

    Modules Used Across All Repos

    Module Total Count
    core 18
    core::alloc 5
    core::any 2
    core::array 1
    core::cell 10
    core::error 1
    core::ffi 2
    core::fmt 12
    core::future 23
    core::hash 1
    core::marker 8
    core::mem 8
    core::net 12
    core::ops 6
    core::pin 9
    core::ptr 2
    core::slice 1
    core::str 1
    core::sync 2
    core::sync::atomic 13
    core::task 20
    core::time 65
  3. pawelrutkaq commented on Nov 26, 2025

    @pawelrutkaq
    ContributorAuthor

    Do we need:

    • core::net at ASIL-B ?
    • core::hash do we need it ?
    • core::error do we need it ?
  4. pawelrutkaq commented on Nov 26, 2025

    @pawelrutkaq
    ContributorAuthor

    PR to document all that #2249 will be followed since missing gaps are tracked in #2248

  5. moved this from Backlog to In progress in Rust certificationon Nov 26, 2025
  6. moved this from In progress to Done in Rust certificationon Feb 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions