https://bugs.kde.org/show_bug.cgi?id=395192

            Bug ID: 395192
           Summary: rust-qt-binding-generator: unable to compile
                    multi-dimensional list
           Product: rust-qt-binding-generator
           Version: unspecified
          Platform: Archlinux Packages
                OS: Linux
            Status: UNCONFIRMED
          Severity: crash
          Priority: NOR
         Component: general
          Assignee: j...@vandenoever.info
          Reporter: schwanc...@protonmail.com
  Target Milestone: ---

Created attachment 113181
  --> https://bugs.kde.org/attachment.cgi?id=113181&action=edit
make log

Hello, thank you for your work. I tried your libairy and I maybee come across a
bug. 

I'm unable to build the rust binding for this binding.json


{
    "cppFile": "src/Binding.cpp",
    "rust": {
        "dir": "rust",
        "interfaceModule": "interface",
        "implementationModule": "implementation"
    },
    "objects": {
        "Sources": {
            "type": "List",
            "itemProperties": {
                "name": {
                    "type": "QString",
                    "rustByValue": true
                },
                "novel_list": {
                    "type": "Source"
                }
            }
        },
        "Source": {
            "type": "List",
            "itemProperties": {
                "title": {
                    "type": "QString",
                    "rustByValue": true
                },
                "chapter_list": {
                    "type": "Novel"
                }
            }
        },
        "Novel": {
            "type": "List",
            "itemProperties": {
                "index": {
                    "type": "quint32"
                },
                "title": {
                    "type": "QString",
                    "rustByValue": true
                },
                "content": {
                    "type": "QString",
                    "rustByValue": true
                }
            }
        }
    }
}


I'm able to compile my rust code, but the cpp code doesn't compile. I added the
log in the attachment. But I don't think the error is from the binding, but
it's more probably that the error come from the rust code. 

I was unable to derive from default, because emit is not implemented for
interface::*Emitter. 

If you are interested in looking at the entire code, the code is hosted at
https://gitlab.com/ognarb/webnovel-manager unter the rust branch

Thank you in advance 

Carl

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to