summaryrefslogtreecommitdiffstats
path: root/toolkit/components/uniffi-example-custom-types/uniffi.toml
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:35:29 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:35:29 +0000
commit59203c63bb777a3bacec32fb8830fba33540e809 (patch)
tree58298e711c0ff0575818c30485b44a2f21bf28a0 /toolkit/components/uniffi-example-custom-types/uniffi.toml
parentAdding upstream version 126.0.1. (diff)
downloadfirefox-59203c63bb777a3bacec32fb8830fba33540e809.tar.xz
firefox-59203c63bb777a3bacec32fb8830fba33540e809.zip
Adding upstream version 127.0.upstream/127.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'toolkit/components/uniffi-example-custom-types/uniffi.toml')
-rw-r--r--toolkit/components/uniffi-example-custom-types/uniffi.toml40
1 files changed, 0 insertions, 40 deletions
diff --git a/toolkit/components/uniffi-example-custom-types/uniffi.toml b/toolkit/components/uniffi-example-custom-types/uniffi.toml
deleted file mode 100644
index 873fa090fb..0000000000
--- a/toolkit/components/uniffi-example-custom-types/uniffi.toml
+++ /dev/null
@@ -1,40 +0,0 @@
-[bindings.swift]
-cdylib_name = "custom_types"
-
-[bindings.swift.custom_types.Url]
-# Name of the type in the Swift code
-type_name = "URL"
-# Modules that need to be imported
-imports = ["Foundation"]
-# Functions to convert between strings and URLs
-into_custom = "URL(string: {})!"
-from_custom = "String(describing: {})"
-
-[bindings.kotlin]
-cdylib_name = "custom_types"
-package_name = "customtypes"
-
-[bindings.kotlin.custom_types.Url]
-# Name of the type in the Kotlin code
-type_name = "URL"
-# Classes that need to be imported
-imports = [ "java.net.URL" ]
-# Functions to convert between strings and URLs
-into_custom = "URL({})"
-from_custom = "{}.toString()"
-
-[bindings.python]
-cdylib_name = "custom_types"
-
-[bindings.python.custom_types.Url]
-# We're going to be the urllib.parse.ParseResult class, which is the closest
-# thing Python has to a Url class. No need to specify `type_name` though,
-# since Python is loosely typed.
-# modules to import
-imports = ["urllib.parse"]
-# Functions to convert between strings and the ParsedUrl class
-into_custom = "urllib.parse.urlparse({})"
-from_custom = "urllib.parse.urlunparse({})"
-
-[bindings.ruby]
-cdylib_name = "custom_types"