diff options
author | Elichai Turkel <elichai.turkel@gmail.com> | 2019-10-19 14:20:42 +0300 |
---|---|---|
committer | Elichai Turkel <elichai.turkel@gmail.com> | 2019-11-02 16:58:23 +0200 |
commit | 6822eca96f5385ab8244b6825cf972a2f003d6d4 (patch) | |
tree | 00a4d04b7ae1e7fe31a02fb0dc879ddf2228af21 /tools/minicargo/manifest.cpp | |
parent | 15773561e40ca5c8cffe0a618c544b6cfdc5ad7e (diff) | |
download | mrust-6822eca96f5385ab8244b6825cf972a2f003d6d4.tar.gz |
Add support for crates renaming
Diffstat (limited to 'tools/minicargo/manifest.cpp')
-rw-r--r-- | tools/minicargo/manifest.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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 |