Man rushed to hospital after being shot in Sydney's west

A man has been rushed to hospital after he was shot in the leg during an early-morning attack.