So far, most engines have been made on the same block and crankshaft - old Opel, Renault, etc. I have never looked at the connecting rods themselves in terms of petrol / diesel differences. Pistons, of course, are different - much heavier, with thicker bottoms, walls and more massive pin seating, often with embedded steel inserts. The head is a whole different story. Especially in the middleman. In any case, it's easier to build a diesel engine than to convert a gasoline one. Unless it's supposed to be something similar to fairy tales about WSK motorcycles riding on ON?
Added after 2 [minutes]: dharma123 wrote: Specifically, I meant how much I would have to boost the gasoline engine to be able to power it with diesel fuel.
A gasoline engine is usually around 13-15 atm, below 10 atm the wear limit is assumed. Diesels - 26-28 atm, limit consumption below 20 atm. So as you can see, you would have to double the compression. Added to this is the shaping of the chambers in the pistons to achieve swirling - not such a simple matter.