From 090a7779ca4e8f6d62a8127f7cf90d9ca4267c9c Mon Sep 17 00:00:00 2001 From: ShaharNaveh <50263213+ShaharNaveh@users.noreply.github.com> Date: Fri, 14 Nov 2025 19:04:19 +0200 Subject: [PATCH] Move `common` -> `crates/common` --- Cargo.toml | 3 +-- {common => crates/common}/Cargo.toml | 0 {common => crates/common}/src/atomic.rs | 0 {common => crates/common}/src/borrow.rs | 0 {common => crates/common}/src/boxvec.rs | 0 {common => crates/common}/src/cformat.rs | 0 {common => crates/common}/src/crt_fd.rs | 0 {common => crates/common}/src/encodings.rs | 0 {common => crates/common}/src/fileutils.rs | 0 {common => crates/common}/src/float_ops.rs | 0 {common => crates/common}/src/format.rs | 0 {common => crates/common}/src/hash.rs | 0 {common => crates/common}/src/int.rs | 0 {common => crates/common}/src/lib.rs | 0 {common => crates/common}/src/linked_list.rs | 0 {common => crates/common}/src/lock.rs | 0 {common => crates/common}/src/lock/cell_lock.rs | 0 {common => crates/common}/src/lock/immutable_mutex.rs | 0 {common => crates/common}/src/lock/thread_mutex.rs | 0 {common => crates/common}/src/macros.rs | 0 {common => crates/common}/src/os.rs | 0 {common => crates/common}/src/rand.rs | 0 {common => crates/common}/src/rc.rs | 0 {common => crates/common}/src/refcount.rs | 0 {common => crates/common}/src/static_cell.rs | 0 {common => crates/common}/src/str.rs | 0 {common => crates/common}/src/windows.rs | 0 27 files changed, 1 insertion(+), 2 deletions(-) rename {common => crates/common}/Cargo.toml (100%) rename {common => crates/common}/src/atomic.rs (100%) rename {common => crates/common}/src/borrow.rs (100%) rename {common => crates/common}/src/boxvec.rs (100%) rename {common => crates/common}/src/cformat.rs (100%) rename {common => crates/common}/src/crt_fd.rs (100%) rename {common => crates/common}/src/encodings.rs (100%) rename {common => crates/common}/src/fileutils.rs (100%) rename {common => crates/common}/src/float_ops.rs (100%) rename {common => crates/common}/src/format.rs (100%) rename {common => crates/common}/src/hash.rs (100%) rename {common => crates/common}/src/int.rs (100%) rename {common => crates/common}/src/lib.rs (100%) rename {common => crates/common}/src/linked_list.rs (100%) rename {common => crates/common}/src/lock.rs (100%) rename {common => crates/common}/src/lock/cell_lock.rs (100%) rename {common => crates/common}/src/lock/immutable_mutex.rs (100%) rename {common => crates/common}/src/lock/thread_mutex.rs (100%) rename {common => crates/common}/src/macros.rs (100%) rename {common => crates/common}/src/os.rs (100%) rename {common => crates/common}/src/rand.rs (100%) rename {common => crates/common}/src/rc.rs (100%) rename {common => crates/common}/src/refcount.rs (100%) rename {common => crates/common}/src/static_cell.rs (100%) rename {common => crates/common}/src/str.rs (100%) rename {common => crates/common}/src/windows.rs (100%) diff --git a/Cargo.toml b/Cargo.toml index b01734ae7ae..9a484ee0b1e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -126,7 +126,6 @@ members = [ "compiler/codegen", "compiler/literal", ".", - "common", "derive", "jit", "vm", @@ -151,7 +150,7 @@ license = "MIT" rustpython-compiler-core = { path = "compiler/core", version = "0.4.0" } rustpython-compiler = { path = "compiler", version = "0.4.0" } rustpython-codegen = { path = "compiler/codegen", version = "0.4.0" } -rustpython-common = { path = "common", version = "0.4.0" } +rustpython-common = { path = "crates/common", version = "0.4.0" } rustpython-derive = { path = "derive", version = "0.4.0" } rustpython-derive-impl = { path = "derive-impl", version = "0.4.0" } rustpython-jit = { path = "jit", version = "0.4.0" } diff --git a/common/Cargo.toml b/crates/common/Cargo.toml similarity index 100% rename from common/Cargo.toml rename to crates/common/Cargo.toml diff --git a/common/src/atomic.rs b/crates/common/src/atomic.rs similarity index 100% rename from common/src/atomic.rs rename to crates/common/src/atomic.rs diff --git a/common/src/borrow.rs b/crates/common/src/borrow.rs similarity index 100% rename from common/src/borrow.rs rename to crates/common/src/borrow.rs diff --git a/common/src/boxvec.rs b/crates/common/src/boxvec.rs similarity index 100% rename from common/src/boxvec.rs rename to crates/common/src/boxvec.rs diff --git a/common/src/cformat.rs b/crates/common/src/cformat.rs similarity index 100% rename from common/src/cformat.rs rename to crates/common/src/cformat.rs diff --git a/common/src/crt_fd.rs b/crates/common/src/crt_fd.rs similarity index 100% rename from common/src/crt_fd.rs rename to crates/common/src/crt_fd.rs diff --git a/common/src/encodings.rs b/crates/common/src/encodings.rs similarity index 100% rename from common/src/encodings.rs rename to crates/common/src/encodings.rs diff --git a/common/src/fileutils.rs b/crates/common/src/fileutils.rs similarity index 100% rename from common/src/fileutils.rs rename to crates/common/src/fileutils.rs diff --git a/common/src/float_ops.rs b/crates/common/src/float_ops.rs similarity index 100% rename from common/src/float_ops.rs rename to crates/common/src/float_ops.rs diff --git a/common/src/format.rs b/crates/common/src/format.rs similarity index 100% rename from common/src/format.rs rename to crates/common/src/format.rs diff --git a/common/src/hash.rs b/crates/common/src/hash.rs similarity index 100% rename from common/src/hash.rs rename to crates/common/src/hash.rs diff --git a/common/src/int.rs b/crates/common/src/int.rs similarity index 100% rename from common/src/int.rs rename to crates/common/src/int.rs diff --git a/common/src/lib.rs b/crates/common/src/lib.rs similarity index 100% rename from common/src/lib.rs rename to crates/common/src/lib.rs diff --git a/common/src/linked_list.rs b/crates/common/src/linked_list.rs similarity index 100% rename from common/src/linked_list.rs rename to crates/common/src/linked_list.rs diff --git a/common/src/lock.rs b/crates/common/src/lock.rs similarity index 100% rename from common/src/lock.rs rename to crates/common/src/lock.rs diff --git a/common/src/lock/cell_lock.rs b/crates/common/src/lock/cell_lock.rs similarity index 100% rename from common/src/lock/cell_lock.rs rename to crates/common/src/lock/cell_lock.rs diff --git a/common/src/lock/immutable_mutex.rs b/crates/common/src/lock/immutable_mutex.rs similarity index 100% rename from common/src/lock/immutable_mutex.rs rename to crates/common/src/lock/immutable_mutex.rs diff --git a/common/src/lock/thread_mutex.rs b/crates/common/src/lock/thread_mutex.rs similarity index 100% rename from common/src/lock/thread_mutex.rs rename to crates/common/src/lock/thread_mutex.rs diff --git a/common/src/macros.rs b/crates/common/src/macros.rs similarity index 100% rename from common/src/macros.rs rename to crates/common/src/macros.rs diff --git a/common/src/os.rs b/crates/common/src/os.rs similarity index 100% rename from common/src/os.rs rename to crates/common/src/os.rs diff --git a/common/src/rand.rs b/crates/common/src/rand.rs similarity index 100% rename from common/src/rand.rs rename to crates/common/src/rand.rs diff --git a/common/src/rc.rs b/crates/common/src/rc.rs similarity index 100% rename from common/src/rc.rs rename to crates/common/src/rc.rs diff --git a/common/src/refcount.rs b/crates/common/src/refcount.rs similarity index 100% rename from common/src/refcount.rs rename to crates/common/src/refcount.rs diff --git a/common/src/static_cell.rs b/crates/common/src/static_cell.rs similarity index 100% rename from common/src/static_cell.rs rename to crates/common/src/static_cell.rs diff --git a/common/src/str.rs b/crates/common/src/str.rs similarity index 100% rename from common/src/str.rs rename to crates/common/src/str.rs diff --git a/common/src/windows.rs b/crates/common/src/windows.rs similarity index 100% rename from common/src/windows.rs rename to crates/common/src/windows.rs