From 6822eca96f5385ab8244b6825cf972a2f003d6d4 Mon Sep 17 00:00:00 2001 From: Elichai Turkel Date: Sat, 19 Oct 2019 14:20:42 +0300 Subject: Add support for crates renaming --- tools/minicargo/manifest.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/minicargo/manifest.cpp b/tools/minicargo/manifest.cpp index ac9c9cb2..098ccab9 100644 --- a/tools/minicargo/manifest.cpp +++ b/tools/minicargo/manifest.cpp @@ -580,6 +580,11 @@ void PackageRef::fill_from_kv(bool was_added, const TomlKeyValue& key_val, size_ this->m_features.push_back( sv.as_string() ); } } + else if ( attr == "package" ) + { + assert(key_val.path.size() == base_idx+1); + this->m_name = key_val.value.as_string(); + } else { // TODO: Error -- cgit v1.2.3