import tor package
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
// SPDX-FileCopyrightText: 2024 Foundation Devices Inc.
|
||||
//
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
import 'package:build_tool/src/cargo.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
final _cargoToml = """
|
||||
[workspace]
|
||||
|
||||
[profile.release]
|
||||
lto = true
|
||||
panic = "abort"
|
||||
opt-level = "z"
|
||||
# strip = "symbols"
|
||||
|
||||
[package]
|
||||
name = "super_native_extensions"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
resolver = "2"
|
||||
|
||||
[lib]
|
||||
crate-type = ["cdylib", "staticlib"]
|
||||
""";
|
||||
|
||||
void main() {
|
||||
test('parseCargoToml', () {
|
||||
final info = CrateInfo.parseManifest(_cargoToml);
|
||||
expect(info.packageName, 'super_native_extensions');
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user